linuxPackages.nvidia_x11_legacy304.settings: force i686

This legacy settings application doesn't support x86_64.
This commit is contained in:
Nikolay Amiantov 2018-03-27 16:40:33 +03:00
parent 00e5b20d17
commit 4b67702e5b
2 changed files with 3 additions and 1 deletions

View file

@ -46,6 +46,7 @@ rec {
persistencedSha256 = null;
useGLVND = false;
useProfiles = false;
settings32Bit = true;
prePatch = let
debPatches = fetchurl {

View file

@ -6,6 +6,7 @@
, useGLVND ? true
, useProfiles ? true
, preferGtk2 ? false
, settings32Bit ? false
, prePatch ? ""
, patches ? []
@ -68,7 +69,7 @@ let
disallowedReferences = optional (!libsOnly) [ kernel.dev ];
passthru = {
settings = callPackage (import ./settings.nix self settingsSha256) {
settings = (if settings32Bit then callPackage_i686 else callPackage) (import ./settings.nix self settingsSha256) {
withGtk2 = preferGtk2;
withGtk3 = !preferGtk2;
};