2014-12-02 07:06:10 +01:00
|
|
|
{ stdenv, fetchgit, perl, cdrkit, syslinux }:
|
|
|
|
|
|
|
|
let
|
|
|
|
date = "20141124";
|
|
|
|
rev = "5cbdc41778622c07429e00f5aee383b575532bf0";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ipxe-${date}-${builtins.substring 0 7 rev}";
|
|
|
|
|
|
|
|
buildInputs = [ perl cdrkit syslinux ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://git.ipxe.org/ipxe.git;
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "0wiy3kag6x8a2a71pc9za9izmac8gdz90vaqp2mwgih6p2lz01zq";
|
2014-12-02 07:06:10 +01:00
|
|
|
inherit rev;
|
|
|
|
};
|
|
|
|
|
2015-01-13 17:44:24 +01:00
|
|
|
preConfigure = "cd src";
|
2014-12-02 07:06:10 +01:00
|
|
|
|
2016-02-22 01:44:58 +01:00
|
|
|
# not possible due to assembler code
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "pic" "stackprotector" ];
|
2016-02-22 01:44:58 +01:00
|
|
|
|
2016-03-19 19:50:36 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2014-12-02 07:06:10 +01:00
|
|
|
makeFlags =
|
|
|
|
[ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here.
|
|
|
|
"ISOLINUX_BIN_LIST=${syslinux}/share/syslinux/isolinux.bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir $out
|
2015-11-05 15:10:36 +01:00
|
|
|
cp bin/ipxe.dsk bin/ipxe.usb bin/ipxe.iso bin/ipxe.lkrn bin/undionly.kpxe $out
|
2014-12-02 07:06:10 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib;
|
|
|
|
{ description = "Network boot firmware";
|
|
|
|
homepage = http://ipxe.org/;
|
|
|
|
license = licenses.gpl2;
|
2015-12-05 22:41:25 +01:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2014-12-02 07:06:10 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|