nixpkgs/pkgs/tools/misc/ipxe/default.nix
Joachim Fasting 8dfb8d06f0 ipxe: fix gcc5 build
gcc5 enables additional warnings, causing the build to fail with
-Werror.  The build could be fixed by specifically disabling errors
for `discarded-array-qualifiers` and `logical-not-parentheses` warnings,
but simply passing -Wno-error is more future proof.

See https://hydra.nixos.org/build/33274006/nixlog/1/raw
2016-03-19 19:52:47 +01:00

41 lines
1,003 B
Nix

{ 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;
sha256 = "22f427df9141a2bbb319b51bdca4f2b7d3a4cbb5d1b2dcb35a43460eac59d305";
inherit rev;
};
preConfigure = "cd src";
NIX_CFLAGS_COMPILE = "-Wno-error";
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
cp bin/ipxe.dsk bin/ipxe.usb bin/ipxe.iso bin/ipxe.lkrn bin/undionly.kpxe $out
'';
meta = with stdenv.lib;
{ description = "Network boot firmware";
homepage = http://ipxe.org/;
license = licenses.gpl2;
maintainers = with maintainers; [ ehmry ];
platforms = platforms.all;
};
}