2013-01-28 15:45:33 +01:00
|
|
|
{ stdenv, fetchurl, nasm, perl, libuuid }:
|
2006-10-12 17:09:27 +02:00
|
|
|
|
2010-08-07 00:27:28 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-01-28 15:45:33 +01:00
|
|
|
name = "syslinux-4.06";
|
|
|
|
|
2006-10-12 17:09:27 +02:00
|
|
|
src = fetchurl {
|
2010-08-07 00:27:28 +02:00
|
|
|
url = "mirror://kernel/linux/utils/boot/syslinux/4.xx/${name}.tar.bz2";
|
2013-01-28 15:45:33 +01:00
|
|
|
sha256 = "09md61npd5z64rv5s3knl4qsn2bqsn57irm5izk6snf46r77gdyv";
|
2006-10-12 17:09:27 +02:00
|
|
|
};
|
2007-01-22 20:14:50 +01:00
|
|
|
|
2010-08-07 00:27:28 +02:00
|
|
|
patches = [ ./perl-deps.patch ];
|
2013-01-28 15:45:33 +01:00
|
|
|
|
|
|
|
buildInputs = [ nasm perl libuuid ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2007-01-22 20:14:50 +01:00
|
|
|
|
2010-08-07 00:27:28 +02:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
|
2011-02-10 02:14:13 +01:00
|
|
|
substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
|
2010-08-07 00:27:28 +02: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 15:45:33 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.syslinux.org/;
|
|
|
|
description = "A lightweight bootloader";
|
|
|
|
};
|
2006-10-12 17:09:27 +02:00
|
|
|
}
|