ipxe: allow usage of preConfigure again, and add a simpler way to extend the options

This commit is contained in:
michael bishop 2016-10-18 02:18:52 -03:00
parent a6e4e8f600
commit 153ff5a69a
No known key found for this signature in database
GPG key ID: C294FC1A485A409A

View file

@ -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";