use hostPlatform.linuxArch in kernel derivation
This commit is contained in:
parent
1a369ff3bf
commit
c341eb46b6
1 changed files with 1 additions and 6 deletions
|
@ -11,12 +11,7 @@
|
|||
let
|
||||
writeConfig = import ./write-kconfig.nix { inherit lib writeText; };
|
||||
kconfigFile = writeConfig "kconfig" config;
|
||||
arch = if stdenv.isMips
|
||||
then "mips"
|
||||
else if stdenv.isAarch64
|
||||
then "arm64"
|
||||
else throw "unknown arch";
|
||||
|
||||
arch = stdenv.hostPlatform.linuxArch;
|
||||
inherit lib; in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kernel";
|
||||
|
|
Loading…
Reference in a new issue