about summary refs log tree commit diff
path: root/pkgs/games/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-09-13 07:32:20 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-09-13 15:28:23 +0200
commit96a14a62bfe2ab98320c8c17db88aba1506847e9 (patch)
tree26c386a75b11eebaeda090362a28e8cd12ea861c /pkgs/games/default.nix
parent54b4898807b1f2bee72399c45fb044b9af365ec9 (diff)
pkgs/games: Add build-support for pkgsi686Linux
So far we only had all the functions within build-support for
builtins.currentSystem, but a few games we have within Vuizvui are still
i686-linux.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/default.nix')
-rw-r--r--pkgs/games/default.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/games/default.nix b/pkgs/games/default.nix
index 530ac5de..555d6b6e 100644
--- a/pkgs/games/default.nix
+++ b/pkgs/games/default.nix
@@ -27,11 +27,16 @@ let
     };
 
     config._module.args.pkgs = let
-      buildSupport = import ./build-support {
-        inherit (pkgs) config;
-        callPackage = lib.callPackageWith (pkgs // buildSupport);
-      };
-    in buildSupport // pkgs;
+      mkBuildSupport = super: let
+        self = import ./build-support {
+          inherit (super) config;
+          callPackage = lib.callPackageWith (super // self);
+        };
+      in self;
+    in pkgs // (mkBuildSupport pkgs) // {
+      pkgsi686Linux = pkgs.pkgsi686Linux
+                   // (mkBuildSupport pkgs.pkgsi686Linux);
+    };
   };
 
 in (pkgs.lib.evalModules {