forked from DGNum/liminix
kernel-modules: use linuxArch instead of case expression
This commit is contained in:
parent
891d6e5f20
commit
c9e4c1b0da
1 changed files with 1 additions and 5 deletions
|
@ -11,11 +11,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
writeConfig = import ../kernel/write-kconfig.nix { inherit lib writeText; };
|
writeConfig = import ../kernel/write-kconfig.nix { inherit lib writeText; };
|
||||||
arch = if stdenv.isMips
|
arch = stdenv.hostPlatform.linuxArch;
|
||||||
then "mips"
|
|
||||||
else if stdenv.isAarch64
|
|
||||||
then "arm64"
|
|
||||||
else throw "unknown arch";
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "kernel-modules";
|
name = "kernel-modules";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue