git.iko.soy/typeable/nixpkgs
on master help sign in
stage: remove nixpkgsFun

also inherit forceSystem for some GNU Hurd stuff

commit18af089de75270523a127a76b62da32165f1f548 authorMatthew Bauer <mjbauer95@gmail.com> dateMon 25 Jun 2018, 14:50 (8 years ago) parentd1bd9fa
2 files changed+9−17
pkgs/top-level/all-packages.nix+6−12 pkgs/top-level/stage.nix+3−5
pkgs/top-level/all-packages.nix+6−12
@@ -5,13 +5,14 @@
55 * to merges. Please use the full-text search of your editor. ;)
66 * Hint: ### starts category names.
77 */
8−{ lib, nixpkgsFun, noSysDirs, config}:
8+{ lib, noSysDirs, config}:
99self: pkgs:
1010
1111with pkgs;
1212
1313{
1414
15+ # Allow callPackage to fill in the pkgs argument
1516 inherit pkgs;
1617
1718 # A stdenv capable of building 32-bit binaries. On x86_64-linux,
@@ -2404,7 +2405,7 @@ with pkgs;
24042405 fluentd = callPackage ../tools/misc/fluentd { };
24052406
24062407 flvstreamer = callPackage ../tools/networking/flvstreamer { };
2407−
2408+
24082409 hmetis = callPackage_i686 ../applications/science/math/hmetis { };
24092410
24102411 libbsd = callPackage ../development/libraries/libbsd { };
@@ -3703,7 +3704,7 @@ with pkgs;
37033704 lzip = callPackage ../tools/compression/lzip { };
37043705
37053706 luxcorerender = callPackage ../tools/graphics/luxcorerender { };
3706−
3707+
37073708 xz = callPackage ../tools/compression/xz { };
37083709
37093710 lz4 = callPackage ../tools/compression/lz4 { };
@@ -4968,7 +4969,7 @@ with pkgs;
49684969 securefs = callPackage ../tools/filesystems/securefs { };
49694970
49704971 seexpr = callPackage ../development/compilers/seexpr { };
4971−
4972+
49724973 setroot = callPackage ../tools/X11/setroot { };
49734974
49744975 setserial = callPackage ../tools/system/setserial { };
@@ -5873,14 +5874,7 @@ with pkgs;
58735874 xbursttools = callPackage ../tools/misc/xburst-tools {
58745875 # It needs a cross compiler for mipsel to build the firmware it will
58755876 # load into the Ben Nanonote
5876− gccCross =
5877− let
5878− pkgsCross = nixpkgsFun {
5879− # Ben Nanonote system
5880− crossSystem = lib.systems.examples.ben-nanonote;
5881− };
5882− in
5883− pkgsCross.buildPackages.gccCrossStageStatic;
5877+ gccCross = pkgsCross.ben-nanonote.buildPackages.gccCrossStageStatic;
58845878 };
58855879
58865880 xclip = callPackage ../tools/misc/xclip { };
pkgs/top-level/stage.nix+3−5
@@ -93,7 +93,7 @@ let
9393
9494 allPackages = self: super:
9595 let res = import ./all-packages.nix
96− { inherit lib nixpkgsFun noSysDirs config; }
96+ { inherit lib noSysDirs config; }
9797 res self;
9898 in res;
9999
@@ -138,10 +138,8 @@ let
138138
139139 # Used by wine, firefox with debugging version of Flash, ...
140140 pkgsi686Linux = forceSystem "i686-linux" "i386";
141−
142− callPackage_i686 = if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"
143− then self.pkgsi686Linux.callPackage
144− else throw "callPackage_i686 not supported on system '${stdenv.system}'";
141+ callPackage_i686 = self.pkgsi686Linux.callPackage;
142+ inherit forceSystem;
145143 };
146144
147145 # The complete chain of package set builders, applied from top to bottom.