at v206 1.2 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 stripDebugList = "bin sbin share/syslinux/com32"; 25 26 makeFlags = [ 27 "BINDIR=$(out)/bin" 28 "SBINDIR=$(out)/sbin" 29 "LIBDIR=$(out)/lib" 30 "INCDIR=$(out)/include" 31 "DATADIR=$(out)/share" 32 "MANDIR=$(out)/share/man" 33 "PERL=perl" 34 "bios" 35 ]; 36 37 meta = with stdenv.lib; { 38 homepage = http://www.syslinux.org/; 39 description = "A lightweight bootloader"; 40 license = licenses.gpl2; 41 platforms = platforms.linux; 42 }; 43}