ipxe: allow usage of preConfigure again, and add a simpler way to extend the options
This commit is contained in:
parent
a6e4e8f600
commit
153ff5a69a
@ -27,8 +27,12 @@ stdenv.mkDerivation {
|
||||
];
|
||||
|
||||
|
||||
enabledOptions = [ "DOWNLOAD_PROTO_HTTPS" ];
|
||||
|
||||
configurePhase = ''
|
||||
echo "#define DOWNLOAD_PROTO_HTTPS" >> src/config/general.h
|
||||
runHook preConfigure
|
||||
for opt in $enabledOptions; do echo "#define $opt" >> src/config/general.h; done
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
preBuild = "cd src";
|
||||
|
Loading…
Reference in New Issue
Block a user