diff options
author | Ben Darwin <bcdarwin@gmail.com> | 2023-04-25 23:55:03 -0400 |
---|---|---|
committer | Ben Darwin <bcdarwin@gmail.com> | 2023-04-25 23:55:03 -0400 |
commit | e196ca505d28035227fb69b2d955a1b3d4333373 (patch) | |
tree | 9399160b6c53440a87302fdcd01f94299d4a89dd /pkgs/development/libraries/gdcm | |
parent | 7306fa67d2c28240c409f679f13b3f391df3381e (diff) |
gdcm: unpin vtk
Diffstat (limited to 'pkgs/development/libraries/gdcm')
-rw-r--r-- | pkgs/development/libraries/gdcm/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/libraries/gdcm/default.nix b/pkgs/development/libraries/gdcm/default.nix index d21fd25019604..3cf9348430101 100644 --- a/pkgs/development/libraries/gdcm/default.nix +++ b/pkgs/development/libraries/gdcm/default.nix @@ -3,7 +3,7 @@ , fetchFromGitHub , cmake , enableVTK ? true -, vtk_8 +, vtk , ApplicationServices , Cocoa , enablePython ? false @@ -18,13 +18,17 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "malaterre"; repo = "GDCM"; - rev = "v${version}"; - sha256 = "sha256-BmUJCqCGt+BvVpLG4bzCH4lsqmhWHU0gbOIU2CCIMGU="; + rev = "refs/tags/v${version}"; + hash = "sha256-BmUJCqCGt+BvVpLG4bzCH4lsqmhWHU0gbOIU2CCIMGU="; }; cmakeFlags = [ "-DGDCM_BUILD_APPLICATIONS=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 [ "-DGDCM_USE_VTK=ON" ] ++ lib.optionals enablePython [ @@ -35,7 +39,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; buildInputs = lib.optionals enableVTK [ - vtk_8 + vtk ] ++ lib.optionals stdenv.isDarwin [ ApplicationServices Cocoa |