From 7cf3be168eff130faa24f2a18362fd76ceef1ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Partheym=C3=BCller?= Date: Thu, 25 Aug 2022 15:41:24 +0200 Subject: [PATCH] ipxe: Allow to specify additional options Overriding the `enabledOptions` attribute only works if `configurePhase` is also overridden, which makes it a bit inconvenient. --- pkgs/tools/misc/ipxe/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/ipxe/default.nix b/pkgs/tools/misc/ipxe/default.nix index 03efc1b664c5..c495e3455a29 100644 --- a/pkgs/tools/misc/ipxe/default.nix +++ b/pkgs/tools/misc/ipxe/default.nix @@ -3,6 +3,7 @@ , syslinux ? null , embedScript ? null , additionalTargets ? {} +, additionalOptions ? [] }: let @@ -63,7 +64,7 @@ stdenv.mkDerivation rec { "IMAGE_TRUST_CMD" "DOWNLOAD_PROTO_HTTP" "DOWNLOAD_PROTO_HTTPS" - ]; + ] ++ additionalOptions; configurePhase = '' runHook preConfigure