diff options
author | aszlig <aszlig@nix.build> | 2018-07-04 02:37:11 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-07-04 02:37:11 +0200 |
commit | f46b8b594e6fbe73b621b963d515014eb9d85134 (patch) | |
tree | f942399eaca27575bd076c21060daeecd245917a /pkgs | |
parent | 62f14c26c550dfe80840542fa8e54d3d7f20e639 (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')
-rw-r--r-- | pkgs/default.nix | 1 | ||||
-rw-r--r-- | pkgs/games/default.nix | 7 | ||||
-rw-r--r-- | pkgs/games/gog/default.nix | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index 9126d382..070ae786 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -18,6 +18,7 @@ let games = import ./games { pkgs = pkgs // self.vuizvui; + pkgsi686Linux = pkgs.pkgsi686Linux // self.vuizvui; config = pkgs.config.vuizvui.games or null; }; 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); }; }; diff --git a/pkgs/games/gog/default.nix b/pkgs/games/gog/default.nix index 99cf2d2e..38ebf489 100644 --- a/pkgs/games/gog/default.nix +++ b/pkgs/games/gog/default.nix @@ -11,7 +11,7 @@ let inherit (config.gog) email password; }; - albion = callPackage_i686 ./albion { inherit (pkgs) buildSandbox; }; + albion = callPackage_i686 ./albion {}; dungeons3 = callPackage ./dungeons3.nix {}; overload = callPackage ./overload.nix {}; party-hard = callPackage ./party-hard.nix {}; |