forked from mirrors/nixpkgs
Merge pull request #95864 from obsidiansystems/nvidia-x11-no32bit
nvidia-x11: add disable32Bit arg to not include 32-bit nvidia
This commit is contained in:
commit
10ee14442d
|
@ -19,6 +19,9 @@
|
|||
# nvidia-settings). Used to support 32-bit binaries on 64-bit
|
||||
# Linux.
|
||||
libsOnly ? false
|
||||
, # don't include the bundled 32-bit libraries on 64-bit platforms,
|
||||
# even if it’s in downloaded binary
|
||||
disable32Bit ? false
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
@ -30,7 +33,7 @@ assert ! versionOlder version "391" -> stdenv.hostPlatform.system == "x86_64-lin
|
|||
let
|
||||
nameSuffix = optionalString (!libsOnly) "-${kernel.version}";
|
||||
pkgSuffix = optionalString (versionOlder version "304") "-pkg0";
|
||||
i686bundled = versionAtLeast version "391";
|
||||
i686bundled = versionAtLeast version "391" && !disable32Bit;
|
||||
|
||||
libPathFor = pkgs: pkgs.lib.makeLibraryPath [ pkgs.libdrm pkgs.xorg.libXext pkgs.xorg.libX11
|
||||
pkgs.xorg.libXv pkgs.xorg.libXrandr pkgs.xorg.libxcb pkgs.zlib pkgs.stdenv.cc.cc ];
|
||||
|
|
Loading…
Reference in a new issue