mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 06:07:34 +00:00
syslinux: Update 4.07 -> 6.02
This commit is contained in:
parent
565f67b15d
commit
aac54c6699
@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, nasm, perl, libuuid }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "syslinux-4.07";
|
||||
name = "syslinux-6.02";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/utils/boot/syslinux/4.xx/${name}.tar.bz2";
|
||||
sha256 = "0nm0lx45h4c5nxnsr538bvryzvqvj1p1p4vqxzd8nlcv47ja8h0j";
|
||||
url = "mirror://kernel/linux/utils/boot/syslinux/${name}.tar.xz";
|
||||
sha256 = "0y2ld2s64s6vc5pf8rj36w71rq2cfax3c1iafp0w1qbjpxy1p8xg";
|
||||
};
|
||||
|
||||
patches = [ ./perl-deps.patch ];
|
||||
@ -14,15 +14,27 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preBuild =
|
||||
''
|
||||
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
|
||||
substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
|
||||
makeFlagsArray=(BINDIR=$out/bin SBINDIR=$out/sbin LIBDIR=$out/lib INCDIR=$out/include DATADIR=$out/share MANDIR=$out/share/man PERL=perl)
|
||||
'';
|
||||
preBuild = ''
|
||||
substituteInPlace Makefile --replace /bin/pwd $(type -P pwd)
|
||||
substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo)
|
||||
substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
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; {
|
||||
homepage = http://www.syslinux.org/;
|
||||
description = "A lightweight bootloader";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user