ipxe: allow usage of preConfigure again, and add a simpler way to extend the options
commit153ff5a69a73109b674f6cfb3f5693110fabb9bd
authormichael bishop <cleverca22@gmail.com>
dateTue 18 Oct 2016, 02:18 (10 years ago)
parenta6e4e8f
pkgs/tools/misc/ipxe/default.nix+5−1
@@ -27,8 +27,12 @@ stdenv.mkDerivation {
2727 ];
2828
2929
30+ enabledOptions = [ "DOWNLOAD_PROTO_HTTPS" ];
31+
3032 configurePhase = ''
31− echo "#define DOWNLOAD_PROTO_HTTPS" >> src/config/general.h
33+ runHook preConfigure
34+ for opt in $enabledOptions; do echo "#define $opt" >> src/config/general.h; done
35+ runHook postConfigure
3236 '';
3337
3438 preBuild = "cd src";