1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

libffi: fix musl tests

Tests do not compile on musl, also alpine seems not to run tests.
This commit is contained in:
Jörg Thalheim 2020-03-19 15:29:08 +00:00
parent 19a0b38cbe
commit 55d24ae823
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -1,9 +1,6 @@
{ stdenv, fetchurl, fetchpatch
, autoreconfHook
# libffi is used in darwin and linux with glibc stdenv
# we cannot run checks within it
, doCheck ? stdenv.hostPlatform.isMusl, dejagnu
}:
stdenv.mkDerivation rec {
@ -28,10 +25,6 @@ stdenv.mkDerivation rec {
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify/}
'';
checkInputs = [ dejagnu ];
inherit doCheck;
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform; # Don't run the native `strip' when cross-compiling.
meta = with stdenv.lib; {