nixpkgs/pkgs/os-specific/linux/syslinux/default.nix

29 lines
828 B
Nix
Raw Normal View History

{ stdenv, fetchurl, nasm, perl, libuuid }:
stdenv.mkDerivation rec {
2013-12-26 05:05:26 +00:00
name = "syslinux-4.07";
src = fetchurl {
url = "mirror://kernel/linux/utils/boot/syslinux/4.xx/${name}.tar.bz2";
2013-12-26 05:05:26 +00:00
sha256 = "0nm0lx45h4c5nxnsr538bvryzvqvj1p1p4vqxzd8nlcv47ja8h0j";
};
patches = [ ./perl-deps.patch ];
buildInputs = [ nasm perl libuuid ];
enableParallelBuilding = true;
preBuild =
''
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
makeFlagsArray=(BINDIR=$out/bin SBINDIR=$out/sbin LIBDIR=$out/lib INCDIR=$out/include DATADIR=$out/share MANDIR=$out/share/man PERL=perl)
'';
meta = {
homepage = http://www.syslinux.org/;
description = "A lightweight bootloader";
};
}