www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

flake.nix (2086B)


      1 {
      2   description = "";
      3   inputs = {
      4     nixpkgs.url = https://github.com/NixOS/nixpkgs/archive/60330b60655b3fa3a18624bdd7069855bb37af99.tar.gz;
      5   };
      6   outputs = { nixpkgs, nix, self, ... }@inputs : {
      7     defaultPackage.x86_64-linux =
      8       let pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; }; in
      9       (pkgs.callPackage ./nixGL.nix {
     10         nvidiaVersionFile = null;
     11         nvidiaVersion = "455.28"; nvidiaHash = "03ysf61qrb272yqkn7bhn9d65lcfhmqc2c0dbh5prp5f2ndlkqg4";
     12         # nvidiaVersion = "455.23.04"; nvidiaHash = "0rvbb9s4ijb0gyiscd93chbgim4lqmy4ksfy15b4abf078qk7q4g";
     13         # …
     14         enable32bits = true;
     15       }).nixGLIntel; # nixGLNvidia;
     16      # nixpkgs.stdenv.mkDerivation {
     17      #   builsInputs = [];
     18      #   { ## Nvidia informations.
     19      #     # Version of the system kernel module. Let it to null to enable auto-detection.
     20      #     nvidiaVersion ? null,
     21      #     # Hash of the Nvidia driver .run file. null is fine, but fixing a value here
     22      #     # will be more reproducible and more efficient.
     23      #     nvidiaHash ? null,
     24      #     # Alternatively, you can pass a path that points to a nvidia version file
     25      #     # and let nixGL extract the version from it. That file must be a copy of
     26      #     # /proc/driver/nvidia/version. Nix doesn't like zero-sized files (see
     27      #     # https://github.com/NixOS/nix/issues/3539 ).
     28      #     nvidiaVersionFile ? null,
     29      #     # Enable 32 bits driver
     30      #     # This is one by default, you can switch it to off if you want to reduce a
     31      #     # bit the size of nixGL closure.
     32      #     enable32bits ? true,
     33      #     # Make sure to enable config.allowUnfree to the instance of nixpkgs to be
     34      #     # able to access the nvidia drivers.
     35      #     pkgs ? import <nixpkgs> {
     36      #       config = { allowUnfree = true; };
     37      #     }
     38      #   }:
     39      #   pkgs.callPackage ./nixGL.nix {
     40      #     inherit
     41      #       nvidiaVersion
     42      #       nvidiaVersionFile
     43      #       nvidiaHash
     44      #       enable32bits
     45      #     ;
     46      #   };
     47      # };
     48   };
     49 }