2006-10-12 17:09:27 +02:00
|
|
|
{stdenv, fetchurl, nasm, perl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-02-07 15:15:12 +01:00
|
|
|
name = "syslinux-3.35";
|
2006-10-12 17:09:27 +02:00
|
|
|
src = fetchurl {
|
2007-08-27 15:59:40 +02:00
|
|
|
url = mirror://kernel/linux/utils/boot/syslinux/Old/syslinux-3.35.tar.bz2;
|
2007-02-07 15:15:12 +01:00
|
|
|
sha256 = "16kf2zhd0c4m3ai9xcls2y0ggvajhmzk1g6mv6jrv8nskkg6w0l6";
|
2006-10-12 17:09:27 +02:00
|
|
|
};
|
2007-01-22 20:14:50 +01:00
|
|
|
buildInputs = [nasm perl];
|
|
|
|
|
|
|
|
preBuild = "
|
|
|
|
makeFlagsArray=(BINDIR=$out/bin SBINDIR=$out/sbin LIBDIR=$out/lib INCDIR=$out/include)
|
|
|
|
|
|
|
|
# Really dirty hack to get syslinux to build without needing a GCC
|
|
|
|
# with 32-bit libraries and headers.
|
|
|
|
if test \"$system\" = x86_64-linux; then
|
|
|
|
substituteInPlace memdisk/Makefile \\
|
|
|
|
--replace 'all: memdisk e820test' 'all: memdisk'
|
|
|
|
mkdir gnu
|
|
|
|
touch gnu/stubs-32.h
|
|
|
|
fi
|
|
|
|
";
|
2006-10-12 17:09:27 +02:00
|
|
|
}
|