summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-24 15:16:12 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-24 15:16:12 -0500
commit00bf1150473dedb02f22696450b250e04875faab (patch)
tree44f353fa7e6fec0031b146a164a2b9d3d1e85fd7
parent9c406d2ac8574ea03ba68db9b843c36ac43e3289 (diff)
downloadnixlib-00bf1150473dedb02f22696450b250e04875faab.tar
nixlib-00bf1150473dedb02f22696450b250e04875faab.tar.gz
nixlib-00bf1150473dedb02f22696450b250e04875faab.tar.bz2
nixlib-00bf1150473dedb02f22696450b250e04875faab.tar.lz
nixlib-00bf1150473dedb02f22696450b250e04875faab.tar.xz
nixlib-00bf1150473dedb02f22696450b250e04875faab.tar.zst
nixlib-00bf1150473dedb02f22696450b250e04875faab.zip
schroedinger: add Darwin patch
-rw-r--r--pkgs/development/libraries/schroedinger/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/libraries/schroedinger/default.nix b/pkgs/development/libraries/schroedinger/default.nix
index 2309719c2bdc..167fe4190764 100644
--- a/pkgs/development/libraries/schroedinger/default.nix
+++ b/pkgs/development/libraries/schroedinger/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, orc, pkgconfig }:
+{ stdenv, fetchurl, orc, pkgconfig, fetchpatch, autoreconfHook }:
 
 stdenv.mkDerivation {
   name = "schroedinger-1.0.11";
@@ -13,15 +13,23 @@ stdenv.mkDerivation {
 
   outputs = [ "out" "dev" "devdoc" ];
 
-  nativeBuildInputs = [ pkgconfig ];
+  nativeBuildInputs = [ pkgconfig autoreconfHook ];
   buildInputs = [ orc ];
 
-  doCheck = true;
+  doCheck = (!stdenv.isDarwin);
+
+  patchFlags = "-p0";
+  patches = [
+    (fetchpatch {
+      url = "https://raw.githubusercontent.com/macports/macports-ports/master/multimedia/schroedinger/files/patch-testsuite-Makefile.am.diff";
+      sha256 = "0cc8ymvgjgwy7ghca2dd8m8pxpinf27s2i8krf2m3fzv2ckq09v3";
+    })
+  ];
 
   meta = with stdenv.lib; {
     homepage = http://diracvideo.org/;
     maintainers = [ maintainers.spwhitt ];
     license = [ licenses.mpl11 licenses.lgpl2 licenses.mit ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }