summary refs log tree commit diff
path: root/pkgs/development/libraries/physics
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2022-06-30 10:24:20 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2022-06-30 10:37:37 -0400
commitcbf77c4a1e99b771648bceee024c0c99b8a79681 (patch)
treec88a33572884dfd870e4bd013db2671dc310c593 /pkgs/development/libraries/physics
parent0929936b2176c2bceab2e4f3827b6a9e2c1147a0 (diff)
downloadnixpkgs-cbf77c4a1e99b771648bceee024c0c99b8a79681.tar
nixpkgs-cbf77c4a1e99b771648bceee024c0c99b8a79681.tar.gz
nixpkgs-cbf77c4a1e99b771648bceee024c0c99b8a79681.tar.bz2
nixpkgs-cbf77c4a1e99b771648bceee024c0c99b8a79681.tar.lz
nixpkgs-cbf77c4a1e99b771648bceee024c0c99b8a79681.tar.xz
nixpkgs-cbf77c4a1e99b771648bceee024c0c99b8a79681.tar.zst
nixpkgs-cbf77c4a1e99b771648bceee024c0c99b8a79681.zip
geant4: remove configuration for optional non-toolkit dependencies
Configuring such small details is not practical because of long build times.
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r--pkgs/development/libraries/physics/geant4/default.nix18
1 files changed, 6 insertions, 12 deletions
diff --git a/pkgs/development/libraries/physics/geant4/default.nix b/pkgs/development/libraries/physics/geant4/default.nix
index 5fb22058065..b23f0812ba1 100644
--- a/pkgs/development/libraries/physics/geant4/default.nix
+++ b/pkgs/development/libraries/physics/geant4/default.nix
@@ -1,7 +1,5 @@
 { enableMultiThreading ? true
-, enableG3toG4         ? false
 , enableInventor       ? false
-, enableGDML           ? false
 , enableQT             ? false
 , enableXM             ? false
 , enableOpenGLX11      ? true
@@ -11,13 +9,10 @@
 # Standard build environment with cmake.
 , lib, stdenv, fetchurl, fetchpatch, cmake
 
-# Optional system packages, otherwise internal GEANT4 packages are used.
 , clhep ? null # not packaged currently
 , expat
-, zlib
-
-# For enableGDML.
 , xercesc
+, zlib
 
 # For enableQT.
 , qtbase
@@ -59,8 +54,8 @@ stdenv.mkDerivation rec {
 
   cmakeFlags = [
     "-DGEANT4_INSTALL_DATA=OFF"
-    "-DGEANT4_USE_GDML=${if enableGDML then "ON" else "OFF"}"
-    "-DGEANT4_USE_G3TOG4=${if enableG3toG4 then "ON" else "OFF"}"
+    "-DGEANT4_USE_GDML=ON"
+    "-DGEANT4_USE_G3TOG4=ON"
     "-DGEANT4_USE_QT=${if enableQT then "ON" else "OFF"}"
     "-DGEANT4_USE_XM=${if enableXM then "ON" else "OFF"}"
     "-DGEANT4_USE_OPENGL_X11=${if enableOpenGLX11 then "ON" else "OFF"}"
@@ -68,8 +63,8 @@ stdenv.mkDerivation rec {
     "-DGEANT4_USE_PYTHON=${if enablePython then "ON" else "OFF"}"
     "-DGEANT4_USE_RAYTRACER_X11=${if enableRaytracerX11 then "ON" else "OFF"}"
     "-DGEANT4_USE_SYSTEM_CLHEP=${if clhep != null then "ON" else "OFF"}"
-    "-DGEANT4_USE_SYSTEM_EXPAT=${if expat != null then "ON" else "OFF"}"
-    "-DGEANT4_USE_SYSTEM_ZLIB=${if zlib != null then "ON" else "OFF"}"
+    "-DGEANT4_USE_SYSTEM_EXPAT=ON"
+    "-DGEANT4_USE_SYSTEM_ZLIB=ON"
     "-DGEANT4_BUILD_MULTITHREADED=${if enableMultiThreading then "ON" else "OFF"}"
   ] ++ lib.optionals stdenv.isDarwin [
     "-DXQuartzGL_INCLUDE_DIR=${libGL.dev}/include"
@@ -93,8 +88,7 @@ stdenv.mkDerivation rec {
     ++ lib.optionals enableInventor [ libXpm coin3d soxt motif ]
     ++ lib.optionals enablePython [ boost_python python3 ];
 
-  propagatedBuildInputs = [ clhep expat zlib libGL ]
-    ++ lib.optionals enableGDML [ xercesc ]
+  propagatedBuildInputs = [ clhep expat xercesc zlib libGL ]
     ++ lib.optionals enableXM [ motif ]
     ++ lib.optionals enableQT [ qtbase ];