Skip to content

Commit

Permalink
geant4: only supply requested dependencies, sort out *BuildInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed May 9, 2018
1 parent 2363a3a commit ec90e2f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkgs/development/libraries/physics/geant4/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,20 @@ let
"-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"}"
] ++ stdenv.lib.optional multiThreadingCapable
"-DGEANT4_BUILD_MULTITHREADED=${if enableMultiThreading then "ON" else "OFF"}"
++ stdenv.lib.optionals enableInventor [
"-DINVENTOR_INCLUDE_DIR=${coin3d}/include"
"-DINVENTOR_LIBRARY_RELEASE=${coin3d}/lib/libCoin.so"
] ++ stdenv.lib.optional multiThreadingCapable
"-DGEANT4_BUILD_MULTITHREADED=${if enableMultiThreading then "ON" else "OFF"}";
];

enableParallelBuilding = true;
buildInputs = [ cmake clhep expat zlib xercesc qt motif libGLU_combined xlibsWrapper libXmu libXpm coin3d soxt ];
propagatedBuildInputs = [ clhep expat zlib xercesc qt motif libGLU_combined xlibsWrapper libXmu libXpm coin3d soxt ];
nativeBuildInputs = [ cmake ];
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 enableInventor [ libXpm coin3d soxt ];

postFixup = ''
# Don't try to export invalid environment variables.
Expand Down

0 comments on commit ec90e2f

Please sign in to comment.