mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
gnu-efi: Only build on efi-enabled systems
This commit is contained in:
parent
09e57636f8
commit
87270fb306
|
@ -38,6 +38,7 @@ rec {
|
|||
|
||||
Kexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
|
||||
[ "x86" "arm" "aarch64" "mips" ];
|
||||
Efi = map (family: { cpu.family = family; }) [ "x86" "arm" ];
|
||||
};
|
||||
|
||||
matchAnyAttrs = patterns:
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
, ninja, meson, python3Packages, glibcLocales
|
||||
, patchelf
|
||||
, getent
|
||||
, hostPlatform
|
||||
}:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
|
@ -71,10 +72,10 @@ in
|
|||
"-Dsystem-gid-max=499"
|
||||
# "-Dtime-epoch=1"
|
||||
|
||||
(if stdenv.isArm then "-Dgnu-efi=false" else "-Dgnu-efi=true")
|
||||
"-Defi-libdir=${gnu-efi}/lib"
|
||||
"-Defi-includedir=${gnu-efi}/include/efi"
|
||||
"-Defi-ldsdir=${gnu-efi}/lib"
|
||||
(if stdenv.isArm || !hostPlatform.isEfi then "-Dgnu-efi=false" else "-Dgnu-efi=true")
|
||||
"-Defi-libdir=${toString gnu-efi}/lib"
|
||||
"-Defi-includedir=${toString gnu-efi}/include/efi"
|
||||
"-Defi-ldsdir=${toString gnu-efi}/lib"
|
||||
|
||||
"-Dsysvinit-path="
|
||||
"-Dsysvrcnd-path="
|
||||
|
|
|
@ -8995,7 +8995,9 @@ with pkgs;
|
|||
|
||||
gnu-config = callPackage ../development/libraries/gnu-config { };
|
||||
|
||||
gnu-efi = callPackage ../development/libraries/gnu-efi { };
|
||||
gnu-efi = if hostPlatform.isEfi
|
||||
then callPackage ../development/libraries/gnu-efi { }
|
||||
else null;
|
||||
|
||||
gnutls = callPackage
|
||||
(if stdenv.isDarwin
|
||||
|
|
Loading…
Reference in a new issue