gdcm: unpin vtk
This commit is contained in:
parent
7306fa67d2
commit
e196ca505d
1 changed files with 8 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, enableVTK ? true
|
, enableVTK ? true
|
||||||
, vtk_8
|
, vtk
|
||||||
, ApplicationServices
|
, ApplicationServices
|
||||||
, Cocoa
|
, Cocoa
|
||||||
, enablePython ? false
|
, enablePython ? false
|
||||||
|
@ -18,13 +18,17 @@ stdenv.mkDerivation rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "malaterre";
|
owner = "malaterre";
|
||||||
repo = "GDCM";
|
repo = "GDCM";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-BmUJCqCGt+BvVpLG4bzCH4lsqmhWHU0gbOIU2CCIMGU=";
|
hash = "sha256-BmUJCqCGt+BvVpLG4bzCH4lsqmhWHU0gbOIU2CCIMGU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DGDCM_BUILD_APPLICATIONS=ON"
|
"-DGDCM_BUILD_APPLICATIONS=ON"
|
||||||
"-DGDCM_BUILD_SHARED_LIBS=ON"
|
"-DGDCM_BUILD_SHARED_LIBS=ON"
|
||||||
|
# hack around usual "`RUNTIME_DESTINATION` must not be an absolute path" issue:
|
||||||
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||||
|
"-DCMAKE_INSTALL_BINDIR=bin"
|
||||||
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
||||||
] ++ lib.optionals enableVTK [
|
] ++ lib.optionals enableVTK [
|
||||||
"-DGDCM_USE_VTK=ON"
|
"-DGDCM_USE_VTK=ON"
|
||||||
] ++ lib.optionals enablePython [
|
] ++ lib.optionals enablePython [
|
||||||
|
@ -35,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
buildInputs = lib.optionals enableVTK [
|
buildInputs = lib.optionals enableVTK [
|
||||||
vtk_8
|
vtk
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
ApplicationServices
|
ApplicationServices
|
||||||
Cocoa
|
Cocoa
|
||||||
|
|
Loading…
Reference in a new issue