2010-08-07 00:27:28 +02:00
|
|
|
{ stdenv, fetchurl, nasm, perl }:
|
2006-10-12 17:09:27 +02:00
|
|
|
|
2010-08-07 00:27:28 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-02-10 02:14:13 +01:00
|
|
|
name = "syslinux-4.03";
|
2010-08-07 00:27:28 +02:00
|
|
|
|
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";
|
2011-02-10 02:14:13 +01:00
|
|
|
sha256 = "0f6s1cnibw6j0jh9bn5qsx3vsar9l1w9b3xfjkvzglgr4kinfmf6";
|
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 ];
|
|
|
|
|
|
|
|
buildInputs = [ nasm perl ];
|
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)
|
|
|
|
'';
|
2006-10-12 17:09:27 +02:00
|
|
|
}
|