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

wip/yesman
michael bishop 8 years ago
parent a6e4e8f600
commit 153ff5a69a
No known key found for this signature in database
GPG Key ID: C294FC1A485A409A
  1. 6
      pkgs/tools/misc/ipxe/default.nix

@ -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…
Cancel
Save