libffi: simplify using `checkInputs`

wip/yesman
Jan Malakhovski 6 years ago
parent dca7b10fd5
commit 2badf9a6f8
  1. 7
      pkgs/development/libraries/libffi/default.nix

@ -1,5 +1,6 @@
{ stdenv, fetchurl, fetchpatch, dejagnu, doCheck ? false
{ stdenv, fetchurl, fetchpatch
, buildPlatform, hostPlatform, autoreconfHook
, doCheck ? true, dejagnu
}:
stdenv.mkDerivation rec {
@ -40,8 +41,6 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "man" "info" ];
buildInputs = stdenv.lib.optional doCheck dejagnu;
nativeBuildInputs = stdenv.lib.optional hostPlatform.isRiscV autoreconfHook;
configureFlags = [
@ -54,6 +53,8 @@ stdenv.mkDerivation rec {
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify/}
'';
checkInputs = [ dejagnu ];
inherit doCheck;
dontStrip = hostPlatform != buildPlatform; # Don't run the native `strip' when cross-compiling.

Loading…
Cancel
Save