summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel-headers
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-04-19 14:51:25 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-04-19 14:53:48 -0400
commitd8934feba1399d220550b81dceeb6da35149cf02 (patch)
tree19b3a7c12396f777311252a9ef83bcfdbde419e8 /pkgs/os-specific/linux/kernel-headers
parent97a3c7f5a3a1d4dfd91dcf96664bc11a376bfd96 (diff)
downloadnixpkgs-d8934feba1399d220550b81dceeb6da35149cf02.tar
nixpkgs-d8934feba1399d220550b81dceeb6da35149cf02.tar.gz
nixpkgs-d8934feba1399d220550b81dceeb6da35149cf02.tar.bz2
nixpkgs-d8934feba1399d220550b81dceeb6da35149cf02.tar.lz
nixpkgs-d8934feba1399d220550b81dceeb6da35149cf02.tar.xz
nixpkgs-d8934feba1399d220550b81dceeb6da35149cf02.tar.zst
nixpkgs-d8934feba1399d220550b81dceeb6da35149cf02.zip
kernel-headers: infer ARCH from config triple
This makes us less reliant on the systems/examples.nix. You should be
able to cross compile with just your triple:

$ nix build --arg crossSystem '{ config = "armv6l-unknown-linux-gnueabi"; }' stdenv
Diffstat (limited to 'pkgs/os-specific/linux/kernel-headers')
-rw-r--r--pkgs/os-specific/linux/kernel-headers/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel-headers/default.nix b/pkgs/os-specific/linux/kernel-headers/default.nix
index c00fc1761d5..ea4e041d43a 100644
--- a/pkgs/os-specific/linux/kernel-headers/default.nix
+++ b/pkgs/os-specific/linux/kernel-headers/default.nix
@@ -12,7 +12,7 @@ let
       inherit sha256;
     };
 
-    ARCH = stdenvNoCC.hostPlatform.platform.kernelArch or (throw "missing kernelArch");
+    ARCH = stdenvNoCC.hostPlatform.platform.kernelArch or stdenvNoCC.hostPlatform.kernelArch;
 
     # It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
     # We do this so we have a build->build, not build->host, C compiler.