diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-08-08 21:27:57 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-08-11 09:35:32 +0000 |
commit | c74e59511d71ff220b5473a34ce31c5e58d3d2e7 (patch) | |
tree | 33dd01267ed2df4501ac867359f766f1616b2459 /pkgs/os-specific/linux/syslinux/default.nix | |
parent | 6c931a13c5f9c2d2be31c1e5053e037b4e6b3cbd (diff) | |
download | nixpkgs-c74e59511d71ff220b5473a34ce31c5e58d3d2e7.tar nixpkgs-c74e59511d71ff220b5473a34ce31c5e58d3d2e7.tar.gz nixpkgs-c74e59511d71ff220b5473a34ce31c5e58d3d2e7.tar.bz2 nixpkgs-c74e59511d71ff220b5473a34ce31c5e58d3d2e7.tar.lz nixpkgs-c74e59511d71ff220b5473a34ce31c5e58d3d2e7.tar.xz nixpkgs-c74e59511d71ff220b5473a34ce31c5e58d3d2e7.tar.zst nixpkgs-c74e59511d71ff220b5473a34ce31c5e58d3d2e7.zip |
syslinux: make tests run, but disable
Diffstat (limited to 'pkgs/os-specific/linux/syslinux/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/syslinux/default.nix | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/pkgs/os-specific/linux/syslinux/default.nix b/pkgs/os-specific/linux/syslinux/default.nix index 8a87d3fce58..f02f1baafe6 100644 --- a/pkgs/os-specific/linux/syslinux/default.nix +++ b/pkgs/os-specific/linux/syslinux/default.nix @@ -21,19 +21,23 @@ stdenv.mkDerivation rec { }) ]; - nativeBuildInputs = [ nasm perl python ]; - buildInputs = [ libuuid makeWrapper ]; - - enableParallelBuilding = false; # Fails very rarely with 'No rule to make target: ...' - hardeningDisable = [ "pic" "stackprotector" "fortify" ]; - - preBuild = '' + postPatch = '' substituteInPlace Makefile --replace /bin/pwd $(type -P pwd) substituteInPlace gpxe/src/Makefile.housekeeping --replace /bin/echo $(type -P echo) substituteInPlace utils/ppmtolss16 --replace /usr/bin/perl $(type -P perl) substituteInPlace gpxe/src/Makefile --replace /usr/bin/perl $(type -P perl) + + # fix tests + substituteInPlace tests/unittest/include/unittest/unittest.h \ + --replace /usr/include/ "" ''; + nativeBuildInputs = [ nasm perl python ]; + buildInputs = [ libuuid makeWrapper ]; + + enableParallelBuilding = false; # Fails very rarely with 'No rule to make target: ...' + hardeningDisable = [ "pic" "stackprotector" "fortify" ]; + stripDebugList = "bin sbin share/syslinux/com32"; makeFlags = [ @@ -47,6 +51,8 @@ stdenv.mkDerivation rec { "bios" ]; + doCheck = false; # fails. some fail in a sandbox, others require qemu + postInstall = '' wrapProgram $out/bin/syslinux \ --prefix PATH : "${mtools}/bin" |