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