www

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

commit e2cc0101af3a45d3d1bfe71e3edb821be3868ac4
parent 3db9b5d12a58d1c049439c0888cee5ae783d93a0
Author: Guillaume Bouchard <guillaum.bouchard@gmail.com>
Date:   Tue, 28 Apr 2020 11:44:59 +0200

Merge pull request #38 from zimbatm/pass-nixpkgs

break: change how nixpkgs is passed to the project
Diffstat:
Mdefault.nix | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/default.nix b/default.nix @@ -8,12 +8,12 @@ # This is one by default, you can switch it to off if you want to reduce a # bit the size of nixGL closure. enable32bits ? true, - pkgs ? import <nixpkgs> -}: - -let - nixpkgs = pkgs {config = {allowUnfree = true;};}; -in - nixpkgs.callPackage ./nixGL.nix { - inherit nvidiaVersion nvidiaHash enable32bits; + # Make sure to enable config.allowUnfree to the instance of nixpkgs to be + # able to access the nvidia drivers. + pkgs ? import <nixpkgs> { + config = { allowUnfree = true; }; } +}: +pkgs.callPackage ./nixGL.nix { + inherit nvidiaVersion nvidiaHash enable32bits; +}