buildLinux: allow overriding stdenv on each call
This commit is contained in:
parent
0a4d102b98
commit
7c7c83e233
|
@ -6,7 +6,7 @@ let
|
|||
);
|
||||
|
||||
origKernel = pkgs.buildLinux {
|
||||
inherit (pkgs.linux) src version;
|
||||
inherit (pkgs.linux) src version stdenv;
|
||||
inherit configfile;
|
||||
allowImportFromDerivation = true;
|
||||
kernelPatches = [ pkgs.kernelPatches.cifs_timeout_2_6_38 ];
|
||||
|
|
|
@ -103,7 +103,7 @@ let
|
|||
};
|
||||
|
||||
kernel = buildLinux {
|
||||
inherit version modDirVersion src kernelPatches;
|
||||
inherit version modDirVersion src kernelPatches stdenv;
|
||||
|
||||
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
|
||||
, hostPlatform
|
||||
}:
|
||||
|
@ -14,6 +14,8 @@ let
|
|||
echo "}" >> $out
|
||||
'').outPath;
|
||||
in {
|
||||
# Allow overriding stdenv on each buildLinux call
|
||||
stdenv,
|
||||
# The kernel version
|
||||
version,
|
||||
# The version of the kernel module directory
|
||||
|
|
|
@ -12281,7 +12281,7 @@ with pkgs;
|
|||
|
||||
linuxPackages_custom = { version, src, configfile }:
|
||||
recurseIntoAttrs (linuxPackagesFor (pkgs.linuxManualConfig {
|
||||
inherit version src configfile;
|
||||
inherit version src configfile stdenv;
|
||||
allowImportFromDerivation = true;
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue