about summary refs log tree commit diff
path: root/pkgs/development/libraries/gdcm
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2024-06-07 07:55:21 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2024-06-07 08:05:36 +0200
commitdc2c1730866ed40d16fb375919d5fc49cf8510fd (patch)
treedd7d6994341e4d83b5614157d51da3e56b171d4c /pkgs/development/libraries/gdcm
parentbf3faad723ca984fc4ea95c1cee1d975a8ca2a28 (diff)
gdcm: improve darwin build
Diffstat (limited to 'pkgs/development/libraries/gdcm')
-rw-r--r--pkgs/development/libraries/gdcm/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gdcm/default.nix b/pkgs/development/libraries/gdcm/default.nix
index 18058af21cb1d..84e0686d5937d 100644
--- a/pkgs/development/libraries/gdcm/default.nix
+++ b/pkgs/development/libraries/gdcm/default.nix
@@ -6,6 +6,7 @@
 , vtk
 , ApplicationServices
 , Cocoa
+, DarwinTools # sw_vers
 , libiconv
 , enablePython ? false
 , python ? null
@@ -50,7 +51,7 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [
     cmake
     pkg-config
-  ];
+  ] ++ lib.optional stdenv.isDarwin DarwinTools;
 
   buildInputs = [
     expat