summary refs log tree commit diff
diff options
context:
space:
mode:
authorhsloan <ishaqsloan@gmail.com>2017-06-28 16:33:04 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-28 20:23:09 -0400
commit1e3b45cfdb17d6d83229c2ae677d31f8736d90f0 (patch)
treef409a221dfea7c5ee9b92523513689075e2d7ef7
parent459d07d41cccbfecf3f1b313dd93fe33e38ff153 (diff)
downloadnixpkgs-1e3b45cfdb17d6d83229c2ae677d31f8736d90f0.tar
nixpkgs-1e3b45cfdb17d6d83229c2ae677d31f8736d90f0.tar.gz
nixpkgs-1e3b45cfdb17d6d83229c2ae677d31f8736d90f0.tar.bz2
nixpkgs-1e3b45cfdb17d6d83229c2ae677d31f8736d90f0.tar.lz
nixpkgs-1e3b45cfdb17d6d83229c2ae677d31f8736d90f0.tar.xz
nixpkgs-1e3b45cfdb17d6d83229c2ae677d31f8736d90f0.tar.zst
nixpkgs-1e3b45cfdb17d6d83229c2ae677d31f8736d90f0.zip
kernel manual-config: Don't use stdenv.cross
-rw-r--r--pkgs/os-specific/linux/kernel/manual-config.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix
index 3466cafa266..c295293fa2c 100644
--- a/pkgs/os-specific/linux/kernel/manual-config.nix
+++ b/pkgs/os-specific/linux/kernel/manual-config.nix
@@ -1,5 +1,6 @@
 { stdenv, runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
 , writeTextFile, ubootChooser
+, hostPlatform
 }:
 
 let
@@ -232,7 +233,7 @@ stdenv.mkDerivation ((drvAttrs config stdenv.platform (kernelPatches ++ nativeKe
 
   karch = stdenv.platform.kernelArch;
 
-  crossAttrs = let cp = stdenv.cross.platform; in
+  crossAttrs = let cp = hostPlatform.platform; in
     (drvAttrs crossConfig cp (kernelPatches ++ crossKernelPatches) crossConfigfile) // {
       makeFlags = commonMakeFlags ++ [
         "ARCH=${cp.kernelArch}"