git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19639 from cleverca22/ipxe

ipxe: allow usage of preConfigure again

commit30c3e503f689b70d50c9b87f1a5af6ee26efc621 authorDomen Kožar <domen@dev.si> dateTue 18 Oct 2016, 10:45 (10 years ago) parenta6e4e8f153ff5a
1 file changed+5−1
pkgs/tools/misc/ipxe/default.nix+5−1
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";