ipxe: allow to pass options with values

For example BANNER_TIMEOUT can be overriden like:
```
ipxe.overrideArgs(old: {
    enableOptions = old.enableOptions ++ [ "BANNER_TIMEOUT 100" ];
});
```

Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
main
Arthur Gautier 3 years ago committed by Emery Hemingway
parent 85568eb45c
commit 3a7e5f6c25
  1. 2
      pkgs/tools/misc/ipxe/default.nix

@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
configurePhase = ''
runHook preConfigure
for opt in $enabledOptions; do echo "#define $opt" >> src/config/general.h; done
for opt in ${lib.escapeShellArgs enabledOptions}; do echo "#define $opt" >> src/config/general.h; done
sed -i '/cp \''${ISOLINUX_BIN}/s/$/ --no-preserve=mode/' src/util/geniso
substituteInPlace src/Makefile.housekeeping --replace '/bin/echo' echo
runHook postConfigure

Loading…
Cancel
Save