about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2015-10-19 10:12:01 -0700
committerJude Taylor <me@jude.bio>2015-10-19 10:12:09 -0700
commit484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d (patch)
treeb8cb4aeef7bae1a5922c2e4eaca2b390a67129d9
parenta6626bef1aea76f05ac3cec1d4966f4a26de9ed1 (diff)
downloadnixlib-484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d.tar
nixlib-484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d.tar.gz
nixlib-484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d.tar.bz2
nixlib-484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d.tar.lz
nixlib-484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d.tar.xz
nixlib-484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d.tar.zst
nixlib-484b4250ae3aa2a51e21123ef1b5f9fc3f673f0d.zip
disable gdk-pixbuf test build on darwin
-rw-r--r--pkgs/development/libraries/gdk-pixbuf/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix
index 754fddd101a2..ef0baeabeed7 100644
--- a/pkgs/development/libraries/gdk-pixbuf/default.nix
+++ b/pkgs/development/libraries/gdk-pixbuf/default.nix
@@ -22,6 +22,11 @@ stdenv.mkDerivation rec {
 
   propagatedBuildInputs = [ glib libtiff libjpeg libpng jasper ];
 
+  # on darwin, tests don't link
+  preBuild = stdenv.lib.optionalString (stdenv.isDarwin && !doCheck) ''
+    substituteInPlace Makefile --replace "docs tests" "docs"
+  '';
+
   configureFlags = "--with-libjasper --with-x11"
     + stdenv.lib.optionalString (gobjectIntrospection != null) " --enable-introspection=yes"
     ;