at 15.09-beta 41 lines 1.1 kB view raw
1{ stdenv, fetchurl, nasm, perl, libuuid }: 2 3stdenv.mkDerivation rec { 4 name = "syslinux-6.03"; 5 6 src = fetchurl { 7 url = "mirror://kernel/linux/utils/boot/syslinux/${name}.tar.xz"; 8 sha256 = "03l5iifwlg1wyb4yh98i0b7pd4j55a1c9y74q1frs47a5dnrilr6"; 9 }; 10 11 # gcc5-fix should be in 6.04+, so remove if it fails to apply. 12 patches = [ ./perl-deps.patch ./gcc5-fix.patch ]; 13 14 buildInputs = [ nasm perl libuuid ]; 15 16 enableParallelBuilding = true; 17 18 preBuild = '' 19 substituteInPlace Makefile --replace /bin/pwd $(type -P pwd) 20 substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo) 21 substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl) 22 ''; 23 24 makeFlags = [ 25 "BINDIR=$(out)/bin" 26 "SBINDIR=$(out)/sbin" 27 "LIBDIR=$(out)/lib" 28 "INCDIR=$(out)/include" 29 "DATADIR=$(out)/share" 30 "MANDIR=$(out)/share/man" 31 "PERL=perl" 32 "bios" 33 ]; 34 35 meta = with stdenv.lib; { 36 homepage = http://www.syslinux.org/; 37 description = "A lightweight bootloader"; 38 license = licenses.gpl2; 39 platforms = platforms.linux; 40 }; 41}