ipxe: 20141124 -> 20160831 (#18938)

HTTPS support is enabled
This commit is contained in:
Pascal Bach 2016-09-25 04:35:46 +02:00 committed by Rok Garbas
parent b49d147a05
commit 888551887b

24
pkgs/tools/misc/ipxe/default.nix Normal file → Executable file
View File

@ -1,23 +1,21 @@
{ stdenv, fetchgit, perl, cdrkit, syslinux }:
{ stdenv, fetchgit, perl, cdrkit, syslinux, xz, openssl }:
let
date = "20141124";
rev = "5cbdc41778622c07429e00f5aee383b575532bf0";
date = "20160831";
rev = "827dd1bfee67daa683935ce65316f7e0f057fe1c";
in
stdenv.mkDerivation {
name = "ipxe-${date}-${builtins.substring 0 7 rev}";
buildInputs = [ perl cdrkit syslinux ];
buildInputs = [ perl cdrkit syslinux xz openssl ];
src = fetchgit {
url = git://git.ipxe.org/ipxe.git;
sha256 = "0wiy3kag6x8a2a71pc9za9izmac8gdz90vaqp2mwgih6p2lz01zq";
sha256 = "11w8b0vln3skfn8r1cvzngslz12njdkwmnacyq3qffb96k2dn2ww";
inherit rev;
};
preConfigure = "cd src";
# not possible due to assembler code
hardeningDisable = [ "pic" "stackprotector" ];
@ -28,9 +26,15 @@ stdenv.mkDerivation {
"ISOLINUX_BIN_LIST=${syslinux}/share/syslinux/isolinux.bin"
];
installPhase =
''
mkdir $out
configurePhase = ''
echo "#define DOWNLOAD_PROTO_HTTPS" >> src/config/general.h
'';
preBuild = "cd src";
installPhase = ''
mkdir -p $out
cp bin/ipxe.dsk bin/ipxe.usb bin/ipxe.iso bin/ipxe.lkrn bin/undionly.kpxe $out
'';