2013-01-28 14:45:33 +00:00
|
|
|
{ stdenv, fetchurl, nasm, perl, libuuid }:
|
2006-10-12 15:09:27 +00:00
|
|
|
|
2010-08-06 22:27:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-02 11:14:50 +00:00
|
|
|
name = "syslinux-6.03";
|
2013-01-28 14:45:33 +00:00
|
|
|
|
2006-10-12 15:09:27 +00:00
|
|
|
src = fetchurl {
|
2014-06-19 00:54:19 +00:00
|
|
|
url = "mirror://kernel/linux/utils/boot/syslinux/${name}.tar.xz";
|
2014-11-02 11:14:50 +00:00
|
|
|
sha256 = "03l5iifwlg1wyb4yh98i0b7pd4j55a1c9y74q1frs47a5dnrilr6";
|
2006-10-12 15:09:27 +00:00
|
|
|
};
|
2007-01-22 19:14:50 +00:00
|
|
|
|
2015-07-07 00:49:07 +00:00
|
|
|
# gcc5-fix should be in 6.04+, so remove if it fails to apply.
|
|
|
|
patches = [ ./perl-deps.patch ./gcc5-fix.patch ];
|
2013-01-28 14:45:33 +00:00
|
|
|
|
|
|
|
buildInputs = [ nasm perl libuuid ];
|
|
|
|
|
2014-11-05 12:22:39 +00:00
|
|
|
enableParallelBuilding = true;
|
2007-01-22 19:14:50 +00:00
|
|
|
|
2014-06-19 00:54:19 +00: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 14:45:33 +00:00
|
|
|
|
2014-06-19 00:54:19 +00: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 14:45:33 +00:00
|
|
|
homepage = http://www.syslinux.org/;
|
|
|
|
description = "A lightweight bootloader";
|
2014-06-19 00:54:19 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2013-01-28 14:45:33 +00:00
|
|
|
};
|
2006-10-12 15:09:27 +00:00
|
|
|
}
|