summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/libffi/default.nix
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2021-12-16 20:44:56 -0800
committerZhaofeng Li <hello@zhaofeng.li>2021-12-16 20:44:56 -0800
commitcb955555df9bfff95f8a417927f6aca265da37ee (patch)
tree56b01b31fb5caebd44c7042fb4b4041dc90c1a0c /pkgs/development/libraries/libffi/default.nix
parent7599020b2168d88475677f110d53a96895cb0557 (diff)
libffi: Run test suite
Diffstat (limited to 'pkgs/development/libraries/libffi/default.nix')
-rw-r--r--pkgs/development/libraries/libffi/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix
index 4332f43c5afb..6a22d585fbc8 100644
--- a/pkgs/development/libraries/libffi/default.nix
+++ b/pkgs/development/libraries/libffi/default.nix
@@ -1,6 +1,8 @@
{ lib, stdenv, fetchurl, fetchpatch
, autoreconfHook
+, doCheck ? true # test suite depends on dejagnu which cannot be used during bootstrapping
+, dejagnu
}:
# Note: this package is used for bootstrapping fetchurl, and thus
@@ -39,6 +41,10 @@ stdenv.mkDerivation rec {
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform; # Don't run the native `strip' when cross-compiling.
+ inherit doCheck;
+
+ checkInputs = [ dejagnu ];
+
meta = with lib; {
description = "A foreign function call interface library";
longDescription = ''