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 {
|
2014-06-19 02:54:19 +02:00
|
|
|
name = "syslinux-6.02";
|
2013-01-28 15:45:33 +01:00
|
|
|
|
2006-10-12 17:09:27 +02:00
|
|
|
src = fetchurl {
|
2014-06-19 02:54:19 +02:00
|
|
|
url = "mirror://kernel/linux/utils/boot/syslinux/${name}.tar.xz";
|
|
|
|
sha256 = "0y2ld2s64s6vc5pf8rj36w71rq2cfax3c1iafp0w1qbjpxy1p8xg";
|
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
|
|
|
|
2014-06-19 02:54:19 +02:00
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace Makefile --replace /bin/pwd $(type -P pwd)
|
|
|
|
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
|
|
|
|
substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
|
|
|
|
'';
|
2013-01-28 15:45:33 +01:00
|
|
|
|
2014-06-19 02:54:19 +02:00
|
|
|
makeFlags = [
|
|
|
|
"BINDIR=$(out)/bin"
|
|
|
|
"SBINDIR=$(out)/sbin"
|
|
|
|
"LIBDIR=$(out)/lib"
|
|
|
|
"INCDIR=$(out)/include"
|
|
|
|
"DATADIR=$(out)/share"
|
|
|
|
"MANDIR=$(out)/share/man"
|
|
|
|
"PERL=perl"
|
|
|
|
"bios"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-01-28 15:45:33 +01:00
|
|
|
homepage = http://www.syslinux.org/;
|
|
|
|
description = "A lightweight bootloader";
|
2014-06-19 02:54:19 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2013-01-28 15:45:33 +01:00
|
|
|
};
|
2006-10-12 17:09:27 +02:00
|
|
|
}
|