liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c341eb46b66f55e0475ff3bb79c9853b8118cda9
parent 1a369ff3bf4a1dafbeb7a1856a3ee46c66d0a69f
Author: Daniel Barlow <dan@telent.net>
Date:   Thu, 12 Oct 2023 18:59:45 +0100

use hostPlatform.linuxArch  in kernel derivation

Diffstat:
Mpkgs/kernel/default.nix | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/pkgs/kernel/default.nix b/pkgs/kernel/default.nix @@ -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";