Loading pkgs/os-specific/linux/nvidia-x11/generic.nix +21 −1 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ , pkgs , pkgsi686Linux , fetchurl , fetchzip , kernel ? null , perl , nukeReferences Loading Loading @@ -177,6 +178,22 @@ let disallowedReferences = optionals (!libsOnly) [ kernel.dev ]; passthru = let fetchFromGithubOrNvidia = { owner, repo, rev, ... }@args: let args' = builtins.removeAttrs args [ "owner" "repo" "rev" ]; baseUrl = "https://github.com/${owner}/${repo}"; in fetchzip (args' // { urls = [ "${baseUrl}/archive/${rev}.tar.gz" "https://download.nvidia.com/XFree86/${repo}/${repo}-${rev}.tar.bz2" ]; # github and nvidia use different compression algorithms, # use an invalid file extension to force detection. extension = "tar.??"; }); in { open = mapNullable (hash: callPackage ./open.nix { Loading @@ -191,11 +208,14 @@ let { withGtk2 = preferGtk2; withGtk3 = !preferGtk2; fetchFromGitHub = fetchFromGithubOrNvidia; } else { }; persistenced = if usePersistenced then mapNullable (hash: callPackage (import ./persistenced.nix self hash) { }) (hash: callPackage (import ./persistenced.nix self hash) { fetchFromGitHub = fetchFromGithubOrNvidia; }) persistencedSha256 else { }; fabricmanager = Loading Loading
pkgs/os-specific/linux/nvidia-x11/generic.nix +21 −1 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ , pkgs , pkgsi686Linux , fetchurl , fetchzip , kernel ? null , perl , nukeReferences Loading Loading @@ -177,6 +178,22 @@ let disallowedReferences = optionals (!libsOnly) [ kernel.dev ]; passthru = let fetchFromGithubOrNvidia = { owner, repo, rev, ... }@args: let args' = builtins.removeAttrs args [ "owner" "repo" "rev" ]; baseUrl = "https://github.com/${owner}/${repo}"; in fetchzip (args' // { urls = [ "${baseUrl}/archive/${rev}.tar.gz" "https://download.nvidia.com/XFree86/${repo}/${repo}-${rev}.tar.bz2" ]; # github and nvidia use different compression algorithms, # use an invalid file extension to force detection. extension = "tar.??"; }); in { open = mapNullable (hash: callPackage ./open.nix { Loading @@ -191,11 +208,14 @@ let { withGtk2 = preferGtk2; withGtk3 = !preferGtk2; fetchFromGitHub = fetchFromGithubOrNvidia; } else { }; persistenced = if usePersistenced then mapNullable (hash: callPackage (import ./persistenced.nix self hash) { }) (hash: callPackage (import ./persistenced.nix self hash) { fetchFromGitHub = fetchFromGithubOrNvidia; }) persistencedSha256 else { }; fabricmanager = Loading