2015-11-11 09:30:17 +00:00
|
|
|
{ stdenv, fetchFromGitHub, nasm, perl, python, libuuid }:
|
2006-10-12 16:09:27 +01:00
|
|
|
|
2010-08-06 23:27:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-11-11 09:30:17 +00:00
|
|
|
name = "syslinux-2015-11-09";
|
2013-01-28 14:45:33 +00:00
|
|
|
|
2015-11-11 09:30:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geneC";
|
|
|
|
repo = "syslinux";
|
|
|
|
rev = "0cc9a99e560a2f52bcf052fd85b1efae35ee812f";
|
|
|
|
sha256 = "0wk3r5ki4lc334f9jpml07wpl8d0bnxi9h1l4h4fyf9a0d7n4kmw";
|
2006-10-12 16:09:27 +01:00
|
|
|
};
|
2007-01-22 19:14:50 +00:00
|
|
|
|
2015-11-14 20:32:51 +00:00
|
|
|
patches = [ ./perl-deps.patch ];
|
2013-01-28 14:45:33 +00:00
|
|
|
|
2015-11-11 09:30:17 +00:00
|
|
|
nativeBuildInputs = [ nasm perl python ];
|
|
|
|
buildInputs = [ libuuid ];
|
2013-01-28 14:45:33 +00:00
|
|
|
|
2015-10-17 21:58:01 +01:00
|
|
|
enableParallelBuilding = false; # Fails very rarely with 'No rule to make target: ...'
|
2007-01-22 19:14:50 +00:00
|
|
|
|
2014-06-19 01:54:19 +01:00
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace Makefile --replace /bin/pwd $(type -P pwd)
|
|
|
|
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
|
2015-11-11 09:30:17 +00:00
|
|
|
substituteInPlace utils/ppmtolss16 gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
|
2014-06-19 01:54:19 +01:00
|
|
|
'';
|
2013-01-28 14:45:33 +00:00
|
|
|
|
2015-10-14 13:27:13 +01:00
|
|
|
stripDebugList = "bin sbin share/syslinux/com32";
|
|
|
|
|
2014-06-19 01:54:19 +01: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 01:54:19 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2013-01-28 14:45:33 +00:00
|
|
|
};
|
2006-10-12 16:09:27 +01:00
|
|
|
}
|