diff options
author | Ben Darwin <bcdarwin@gmail.com> | 2023-11-05 22:47:25 -0500 |
---|---|---|
committer | Ben Darwin <bcdarwin@gmail.com> | 2023-11-13 15:42:36 -0500 |
commit | 7a7e3acc8ccc995313c87004184fd16e3f050f85 (patch) | |
tree | 5f39eed9a2c890a5b40cea9590631650ad565a9b /pkgs/development | |
parent | 9c19bc1a55225b4d235d1a26e2409f883c2ae52c (diff) |
gdcm: unvendor some dependencies (openjpeg, zlib, uuid, expat)
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/gdcm/default.nix | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gdcm/default.nix b/pkgs/development/libraries/gdcm/default.nix index 76e661dfbd4c6..c186ffb4a1353 100644 --- a/pkgs/development/libraries/gdcm/default.nix +++ b/pkgs/development/libraries/gdcm/default.nix @@ -10,6 +10,11 @@ , enablePython ? false , python ? null , swig +, expat +, libuuid +, openjpeg +, zlib +, pkg-config }: stdenv.mkDerivation rec { @@ -27,6 +32,10 @@ stdenv.mkDerivation rec { "-DGDCM_BUILD_APPLICATIONS=ON" "-DGDCM_BUILD_SHARED_LIBS=ON" "-DGDCM_BUILD_TESTING=ON" + "-DGDCM_USE_SYSTEM_EXPAT=ON" + "-DGDCM_USE_SYSTEM_ZLIB=ON" + "-DGDCM_USE_SYSTEM_UUID=ON" + "-DGDCM_USE_SYSTEM_OPENJPEG=ON" # hack around usual "`RUNTIME_DESTINATION` must not be an absolute path" issue: "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_BINDIR=bin" @@ -38,9 +47,17 @@ stdenv.mkDerivation rec { "-DGDCM_INSTALL_PYTHONMODULE_DIR=${placeholder "out"}/${python.sitePackages}" ]; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + pkg-config + ]; - buildInputs = lib.optionals enableVTK [ + buildInputs = [ + expat + libuuid + openjpeg + zlib + ] ++ lib.optionals enableVTK [ vtk ] ++ lib.optionals stdenv.isDarwin [ ApplicationServices |