at release-16.03-start 50 lines 1.4 kB view raw
1{ stdenv, fetchFromGitHub, nasm, perl, python, libuuid, mtools, makeWrapper }: 2 3stdenv.mkDerivation rec { 4 name = "syslinux-2015-11-09"; 5 6 src = fetchFromGitHub { 7 owner = "geneC"; 8 repo = "syslinux"; 9 rev = "0cc9a99e560a2f52bcf052fd85b1efae35ee812f"; 10 sha256 = "0wk3r5ki4lc334f9jpml07wpl8d0bnxi9h1l4h4fyf9a0d7n4kmw"; 11 }; 12 13 patches = [ ./perl-deps.patch ]; 14 15 nativeBuildInputs = [ nasm perl python ]; 16 buildInputs = [ libuuid makeWrapper ]; 17 18 enableParallelBuilding = false; # Fails very rarely with 'No rule to make target: ...' 19 20 preBuild = '' 21 substituteInPlace Makefile --replace /bin/pwd $(type -P pwd) 22 substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo) 23 substituteInPlace utils/ppmtolss16 gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl) 24 ''; 25 26 stripDebugList = "bin sbin share/syslinux/com32"; 27 28 makeFlags = [ 29 "BINDIR=$(out)/bin" 30 "SBINDIR=$(out)/sbin" 31 "LIBDIR=$(out)/lib" 32 "INCDIR=$(out)/include" 33 "DATADIR=$(out)/share" 34 "MANDIR=$(out)/share/man" 35 "PERL=perl" 36 "bios" 37 ]; 38 39 postInstall = '' 40 wrapProgram $out/bin/syslinux \ 41 --prefix PATH : "${mtools}/bin" 42 ''; 43 44 meta = with stdenv.lib; { 45 homepage = http://www.syslinux.org/; 46 description = "A lightweight bootloader"; 47 license = licenses.gpl2; 48 platforms = platforms.linux; 49 }; 50}