about summary refs log tree commit diff
path: root/pkgs/development/libraries/vmmlib
diff options
context:
space:
mode:
authorDaiderd Jordan2017-09-21 21:51:32 +0200
committerDaiderd Jordan2017-09-21 21:52:10 +0200
commit7c30c83b7b09c41dda2f2766607a8376c91c3129 (patch)
treec53f6a50220af580fd3419b772eef68ba6afa25a /pkgs/development/libraries/vmmlib
parentfe2e7def5341b0f5fe4661ae9853756600d4c384 (diff)
vmmlib: fix darwin frameworks
Diffstat (limited to 'pkgs/development/libraries/vmmlib')
-rw-r--r--pkgs/development/libraries/vmmlib/default.nix21
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/development/libraries/vmmlib/default.nix b/pkgs/development/libraries/vmmlib/default.nix
index 3a7f8770e6c7..ccdf2b05e7e3 100644
--- a/pkgs/development/libraries/vmmlib/default.nix
+++ b/pkgs/development/libraries/vmmlib/default.nix
@@ -1,9 +1,10 @@
-{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, blas }:
+{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, blas
+, Accelerate, CoreGraphics, CoreVideo
+}:
 
 stdenv.mkDerivation rec {
   version = "1.6.2";
   name = "vmmlib-${version}";
-  buildInputs = [ stdenv pkgconfig cmake boost blas ];
 
   src = fetchFromGitHub {
     owner = "VMML";
@@ -12,13 +13,17 @@ stdenv.mkDerivation rec {
     sha256 = "0sn6jl1r5k6ka0vkjsdnn14hb95dqq8158dapby6jk72wqj9kdml";
   };
 
-  patches = [ 
-		./disable-cpack.patch   #disable the need of cpack/rpm
-	    ];
-  
+  patches = [
+    ./disable-cpack.patch   #disable the need of cpack/rpm
+  ];
+
+  nativeBuildInputs = [ pkgconfig cmake ];
+  buildInputs = [ boost blas ]
+    ++ stdenv.lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ];
+
   enableParallelBuilding = true;
 
-  doCheck = true;
+  doCheck = !stdenv.isDarwin;
 
   checkTarget = "test";
 
@@ -36,6 +41,6 @@ stdenv.mkDerivation rec {
     homepage    = http://github.com/VMML/vmmlib/;
     maintainers = [ maintainers.adev ];
     platforms   = platforms.all;
-  };  
+  };
 }