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
|
let
|
||||||
writeConfig = import ./write-kconfig.nix { inherit lib writeText; };
|
writeConfig = import ./write-kconfig.nix { inherit lib writeText; };
|
||||||
kconfigFile = writeConfig "kconfig" config;
|
kconfigFile = writeConfig "kconfig" config;
|
||||||
arch = if stdenv.isMips
|
arch = stdenv.hostPlatform.linuxArch;
|
||||||
then "mips"
|
|
||||||
else if stdenv.isAarch64
|
|
||||||
then "arm64"
|
|
||||||
else throw "unknown arch";
|
|
||||||
|
|
||||||
inherit lib; in
|
inherit lib; in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "kernel";
|
name = "kernel";
|
||||||
|
|
Loading…
Reference in a new issue