geant4: move parameter definitions from all-packages, use system zlib, use qt5
This commit is contained in:
parent
4d33e289b5
commit
f3049d020a
@ -1,55 +1,40 @@
|
||||
{ enableMultiThreading ? false
|
||||
{ enableMultiThreading ? true
|
||||
, enableG3toG4 ? false
|
||||
, enableInventor ? false
|
||||
, enableGDML ? false
|
||||
, enableQT ? false
|
||||
, enableXM ? false
|
||||
, enableOpenGLX11 ? false
|
||||
, enableOpenGLX11 ? true
|
||||
, enableRaytracerX11 ? false
|
||||
|
||||
# Standard build environment with cmake.
|
||||
, stdenv, fetchurl, cmake
|
||||
|
||||
# Optional system packages, otherwise internal GEANT4 packages are used.
|
||||
, clhep ? null
|
||||
, expat ? null
|
||||
, zlib ? null
|
||||
, clhep ? null # not packaged currently
|
||||
, expat
|
||||
, zlib
|
||||
|
||||
# For enableGDML.
|
||||
, xercesc ? null
|
||||
, xercesc
|
||||
|
||||
# For enableQT.
|
||||
, qt ? null # qt4SDK or qt5SDK
|
||||
, qtbase
|
||||
|
||||
# For enableXM.
|
||||
, motif ? null # motif or lesstif
|
||||
, motif
|
||||
|
||||
# For enableInventor
|
||||
, coin3d
|
||||
, soxt
|
||||
, libXpm ? null
|
||||
, libXpm
|
||||
|
||||
# For enableQT, enableXM, enableOpenGLX11, enableRaytracerX11.
|
||||
, libGLU_combined ? null
|
||||
, xlibsWrapper ? null
|
||||
, libXmu ? null
|
||||
, libGLU_combined
|
||||
, xlibsWrapper
|
||||
, libXmu
|
||||
}:
|
||||
|
||||
# G4persistency library with support for GDML
|
||||
assert enableGDML -> xercesc != null;
|
||||
|
||||
# If enableQT, Qt4/5 User Interface and Visualization drivers.
|
||||
assert enableQT -> qt != null;
|
||||
|
||||
# Motif User Interface and Visualisation drivers.
|
||||
assert enableXM -> motif != null;
|
||||
|
||||
# OpenGL/X11 User Interface and Visualisation drivers.
|
||||
assert enableQT || enableXM || enableOpenGLX11 || enableRaytracerX11 -> libGLU_combined != null;
|
||||
assert enableQT || enableXM || enableOpenGLX11 || enableRaytracerX11 -> xlibsWrapper != null;
|
||||
assert enableQT || enableXM || enableOpenGLX11 || enableRaytracerX11 -> libXmu != null;
|
||||
assert enableInventor -> libXpm != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "10.4.1";
|
||||
name = "geant4-${version}";
|
||||
@ -82,7 +67,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ clhep expat zlib libGLU_combined xlibsWrapper libXmu ]
|
||||
++ stdenv.lib.optionals enableGDML [ xercesc ]
|
||||
++ stdenv.lib.optionals enableXM [ motif ]
|
||||
++ stdenv.lib.optionals enableQT [ qt ]
|
||||
++ stdenv.lib.optionals enableQT [ qtbase ]
|
||||
++ stdenv.lib.optionals enableInventor [ libXpm coin3d soxt ];
|
||||
|
||||
postFixup = ''
|
||||
|
@ -21286,26 +21286,7 @@ with pkgs;
|
||||
|
||||
fastnlo = callPackage ../development/libraries/physics/fastnlo { };
|
||||
|
||||
geant4 = callPackage ../development/libraries/physics/geant4 {
|
||||
enableMultiThreading = true;
|
||||
enableG3toG4 = false;
|
||||
enableInventor = false;
|
||||
enableGDML = false;
|
||||
enableQT = false;
|
||||
enableXM = false;
|
||||
enableOpenGLX11 = true;
|
||||
enableRaytracerX11 = false;
|
||||
|
||||
# Optional system packages, otherwise internal GEANT4 packages are used.
|
||||
clhep = null;
|
||||
zlib = null;
|
||||
|
||||
# For enableGDML.
|
||||
xercesc = null;
|
||||
|
||||
# For enableQT.
|
||||
qt = null; # qt4SDK or qt5SDK
|
||||
};
|
||||
geant4 = libsForQt5.callPackage ../development/libraries/physics/geant4 { };
|
||||
|
||||
cernlib = callPackage ../development/libraries/physics/cernlib { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user