stage: remove nixpkgsFun
also inherit forceSystem for some GNU Hurd stuff
This commit is contained in:
parent
d1bd9faf61
commit
18af089de7
@ -5,13 +5,14 @@
|
|||||||
* to merges. Please use the full-text search of your editor. ;)
|
* to merges. Please use the full-text search of your editor. ;)
|
||||||
* Hint: ### starts category names.
|
* Hint: ### starts category names.
|
||||||
*/
|
*/
|
||||||
{ lib, nixpkgsFun, noSysDirs, config}:
|
{ lib, noSysDirs, config}:
|
||||||
self: pkgs:
|
self: pkgs:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
# Allow callPackage to fill in the pkgs argument
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|
||||||
# A stdenv capable of building 32-bit binaries. On x86_64-linux,
|
# A stdenv capable of building 32-bit binaries. On x86_64-linux,
|
||||||
@ -5873,14 +5874,7 @@ with pkgs;
|
|||||||
xbursttools = callPackage ../tools/misc/xburst-tools {
|
xbursttools = callPackage ../tools/misc/xburst-tools {
|
||||||
# It needs a cross compiler for mipsel to build the firmware it will
|
# It needs a cross compiler for mipsel to build the firmware it will
|
||||||
# load into the Ben Nanonote
|
# load into the Ben Nanonote
|
||||||
gccCross =
|
gccCross = pkgsCross.ben-nanonote.buildPackages.gccCrossStageStatic;
|
||||||
let
|
|
||||||
pkgsCross = nixpkgsFun {
|
|
||||||
# Ben Nanonote system
|
|
||||||
crossSystem = lib.systems.examples.ben-nanonote;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
pkgsCross.buildPackages.gccCrossStageStatic;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xclip = callPackage ../tools/misc/xclip { };
|
xclip = callPackage ../tools/misc/xclip { };
|
||||||
|
@ -93,7 +93,7 @@ let
|
|||||||
|
|
||||||
allPackages = self: super:
|
allPackages = self: super:
|
||||||
let res = import ./all-packages.nix
|
let res = import ./all-packages.nix
|
||||||
{ inherit lib nixpkgsFun noSysDirs config; }
|
{ inherit lib noSysDirs config; }
|
||||||
res self;
|
res self;
|
||||||
in res;
|
in res;
|
||||||
|
|
||||||
@ -138,10 +138,8 @@ let
|
|||||||
|
|
||||||
# Used by wine, firefox with debugging version of Flash, ...
|
# Used by wine, firefox with debugging version of Flash, ...
|
||||||
pkgsi686Linux = forceSystem "i686-linux" "i386";
|
pkgsi686Linux = forceSystem "i686-linux" "i386";
|
||||||
|
callPackage_i686 = self.pkgsi686Linux.callPackage;
|
||||||
callPackage_i686 = if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"
|
inherit forceSystem;
|
||||||
then self.pkgsi686Linux.callPackage
|
|
||||||
else throw "callPackage_i686 not supported on system '${stdenv.system}'";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# The complete chain of package set builders, applied from top to bottom.
|
# The complete chain of package set builders, applied from top to bottom.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user