2013-01-28 14:45:33 +00:00
|
|
|
{ stdenv, fetchurl, nasm, perl, libuuid }:
|
2006-10-12 16:09:27 +01:00
|
|
|
|
2010-08-06 23:27:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-26 05:05:26 +00:00
|
|
|
name = "syslinux-4.07";
|
2013-01-28 14:45:33 +00:00
|
|
|
|
2006-10-12 16:09:27 +01:00
|
|
|
src = fetchurl {
|
2010-08-06 23:27:28 +01:00
|
|
|
url = "mirror://kernel/linux/utils/boot/syslinux/4.xx/${name}.tar.bz2";
|
2013-12-26 05:05:26 +00:00
|
|
|
sha256 = "0nm0lx45h4c5nxnsr538bvryzvqvj1p1p4vqxzd8nlcv47ja8h0j";
|
2006-10-12 16:09:27 +01:00
|
|
|
};
|
2007-01-22 19:14:50 +00:00
|
|
|
|
2010-08-06 23:27:28 +01:00
|
|
|
patches = [ ./perl-deps.patch ];
|
2013-01-28 14:45:33 +00:00
|
|
|
|
|
|
|
buildInputs = [ nasm perl libuuid ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2007-01-22 19:14:50 +00:00
|
|
|
|
2010-08-06 23:27:28 +01:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
|
2011-02-10 01:14:13 +00:00
|
|
|
substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
|
2010-08-06 23:27:28 +01:00
|
|
|
makeFlagsArray=(BINDIR=$out/bin SBINDIR=$out/sbin LIBDIR=$out/lib INCDIR=$out/include DATADIR=$out/share MANDIR=$out/share/man PERL=perl)
|
|
|
|
'';
|
2013-01-28 14:45:33 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.syslinux.org/;
|
|
|
|
description = "A lightweight bootloader";
|
|
|
|
};
|
2006-10-12 16:09:27 +01:00
|
|
|
}
|