about summary refs log tree commit diff
path: root/pkgs/games/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-07-04 02:37:11 +0200
committeraszlig <aszlig@nix.build>2018-07-04 02:37:11 +0200
commitf46b8b594e6fbe73b621b963d515014eb9d85134 (patch)
treef942399eaca27575bd076c21060daeecd245917a /pkgs/games/default.nix
parent62f14c26c550dfe80840542fa8e54d3d7f20e639 (diff)
pkgs: Fix passing through i686-linux package set
So far in the games namespace we have just used the callPackage_i686
function from <nixpkgs> instead of our augmented set.

If we just use packages that are available in <nixpkgs> everything is
fine, but as soon as we want to use one of our own packages for
i686-linux we can't simply do that.

One example is the override in the gog.albion derivation which just uses
buildSandbox from the main pkgs attribute set.

We now properly pass through the whole pkgsi686Linux set to the games
namespace, so we can drop that hack for Albion.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/default.nix')
-rw-r--r--pkgs/games/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/games/default.nix b/pkgs/games/default.nix
index ae86d30e..bead9271 100644
--- a/pkgs/games/default.nix
+++ b/pkgs/games/default.nix
@@ -1,4 +1,6 @@
-{ config ? null, pkgs ? import <nixpkgs> {} }:
+{ config ? null, pkgs ? import <nixpkgs> {}
+, pkgsi686Linux ? pkgs.pkgsi686Linux
+}:
 
 let
   configFilePath = let
@@ -34,8 +36,7 @@ let
     };
 
     config._module.args.pkgs = pkgs // (mkBuildSupport pkgs) // {
-      pkgsi686Linux = pkgs.pkgsi686Linux
-                   // (mkBuildSupport pkgs.pkgsi686Linux);
+      pkgsi686Linux = pkgsi686Linux // (mkBuildSupport pkgsi686Linux);
     };
   };