vmmlib: fix darwin frameworks

This commit is contained in:
Daiderd Jordan 2017-09-21 21:51:32 +02:00
parent fe2e7def53
commit 7c30c83b7b
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 16 additions and 9 deletions

View File

@ -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";
@ -13,12 +14,16 @@ stdenv.mkDerivation rec {
};
patches = [
./disable-cpack.patch #disable the need of cpack/rpm
];
./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";

View File

@ -7902,7 +7902,9 @@ with pkgs;
eigen2 = callPackage ../development/libraries/eigen/2.0.nix {};
vmmlib = callPackage ../development/libraries/vmmlib {};
vmmlib = callPackage ../development/libraries/vmmlib {
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
};
elastix = callPackage ../development/libraries/science/biology/elastix { };