about summary refs log tree commit diff
path: root/pkgs/development/libraries/libffi
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-09-24 11:28:20 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-12-17 14:45:46 +0100
commit5a129a8121f455e79fd1ae90ce941a690a053f14 (patch)
treebe0272b737ca20ca42687a67ea8b899ce84b050a /pkgs/development/libraries/libffi
parent6538905eb42b2129c71612dc15e3ce2522907f72 (diff)
libffi: doCheck optionally and do so for glib-tested
This is kind-of reverting fcf99efcd.
Diffstat (limited to 'pkgs/development/libraries/libffi')
-rw-r--r--pkgs/development/libraries/libffi/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix
index 824b909f1d911..9c2334f38db8b 100644
--- a/pkgs/development/libraries/libffi/default.nix
+++ b/pkgs/development/libraries/libffi/default.nix
@@ -1,4 +1,4 @@
-{ fetchurl, stdenv }:
+{ fetchurl, stdenv, dejagnu, doCheck ? false }:
 
 stdenv.mkDerivation rec {
   name = "libffi-3.2.1";
@@ -10,11 +10,15 @@ stdenv.mkDerivation rec {
 
   patches = if stdenv.isCygwin then [ ./3.2.1-cygwin.patch ] else null;
 
+  buildInputs = stdenv.lib.optional doCheck dejagnu;
+
   configureFlags = [
     "--with-gcc-arch=generic" # no detection of -march= or -mtune=
     "--enable-pax_emutramp"
   ];
 
+  inherit doCheck;
+
   dontStrip = stdenv ? cross; # Don't run the native `strip' when cross-compiling.
 
   # Install headers in the right place.