buildLinux: allow overriding stdenv on each call
This commit is contained in:
parent
0a4d102b98
commit
7c7c83e233
|
@ -6,7 +6,7 @@ let
|
||||||
);
|
);
|
||||||
|
|
||||||
origKernel = pkgs.buildLinux {
|
origKernel = pkgs.buildLinux {
|
||||||
inherit (pkgs.linux) src version;
|
inherit (pkgs.linux) src version stdenv;
|
||||||
inherit configfile;
|
inherit configfile;
|
||||||
allowImportFromDerivation = true;
|
allowImportFromDerivation = true;
|
||||||
kernelPatches = [ pkgs.kernelPatches.cifs_timeout_2_6_38 ];
|
kernelPatches = [ pkgs.kernelPatches.cifs_timeout_2_6_38 ];
|
||||||
|
|
|
@ -103,7 +103,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
kernel = buildLinux {
|
kernel = buildLinux {
|
||||||
inherit version modDirVersion src kernelPatches;
|
inherit version modDirVersion src kernelPatches stdenv;
|
||||||
|
|
||||||
configfile = configfile.nativeDrv or configfile;
|
configfile = configfile.nativeDrv or configfile;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
|
{ runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
|
||||||
, writeTextFile, ubootChooser
|
, writeTextFile, ubootChooser
|
||||||
, hostPlatform
|
, hostPlatform
|
||||||
}:
|
}:
|
||||||
|
@ -14,6 +14,8 @@ let
|
||||||
echo "}" >> $out
|
echo "}" >> $out
|
||||||
'').outPath;
|
'').outPath;
|
||||||
in {
|
in {
|
||||||
|
# Allow overriding stdenv on each buildLinux call
|
||||||
|
stdenv,
|
||||||
# The kernel version
|
# The kernel version
|
||||||
version,
|
version,
|
||||||
# The version of the kernel module directory
|
# The version of the kernel module directory
|
||||||
|
|
|
@ -12281,7 +12281,7 @@ with pkgs;
|
||||||
|
|
||||||
linuxPackages_custom = { version, src, configfile }:
|
linuxPackages_custom = { version, src, configfile }:
|
||||||
recurseIntoAttrs (linuxPackagesFor (pkgs.linuxManualConfig {
|
recurseIntoAttrs (linuxPackagesFor (pkgs.linuxManualConfig {
|
||||||
inherit version src configfile;
|
inherit version src configfile stdenv;
|
||||||
allowImportFromDerivation = true;
|
allowImportFromDerivation = true;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue