mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
systemd: withEfi: move gnu-efi check into assertion
This commit is contained in:
parent
13a910e3f6
commit
54c35f0940
@ -86,6 +86,7 @@ assert withImportd ->
|
|||||||
(curl.dev != null && zlib != null && xz != null && libgcrypt != null
|
(curl.dev != null && zlib != null && xz != null && libgcrypt != null
|
||||||
&& gnutar != null && gnupg != null && withCompression );
|
&& gnutar != null && gnupg != null && withCompression );
|
||||||
|
|
||||||
|
assert withEfi -> (gnu-efi != null);
|
||||||
assert withRemote -> lib.getDev curl != null;
|
assert withRemote -> lib.getDev curl != null;
|
||||||
assert withCoredump -> withCompression;
|
assert withCoredump -> withCompression;
|
||||||
|
|
||||||
@ -269,8 +270,8 @@ stdenv.mkDerivation {
|
|||||||
# more frequent development builds
|
# more frequent development builds
|
||||||
"-Dman=true"
|
"-Dman=true"
|
||||||
|
|
||||||
"-Dgnu-efi=${lib.boolToString (withEfi && gnu-efi != null)}"
|
"-Dgnu-efi=${lib.boolToString withEfi}"
|
||||||
] ++ lib.optionals (withEfi && gnu-efi != null) [
|
] ++ lib.optionals withEfi [
|
||||||
"-Defi-libdir=${toString gnu-efi}/lib"
|
"-Defi-libdir=${toString gnu-efi}/lib"
|
||||||
"-Defi-includedir=${toString gnu-efi}/include/efi"
|
"-Defi-includedir=${toString gnu-efi}/include/efi"
|
||||||
"-Defi-ldsdir=${toString gnu-efi}/lib"
|
"-Defi-ldsdir=${toString gnu-efi}/lib"
|
||||||
|
Loading…
Reference in New Issue
Block a user