geant4: enable on darwin

This commit is contained in:
Dmitry Kalinkin 2022-06-16 17:06:37 -04:00
parent 10ca1b2864
commit d5fccdcd49
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -71,6 +71,9 @@ stdenv.mkDerivation rec {
"-DGEANT4_USE_SYSTEM_EXPAT=${if expat != null then "ON" else "OFF"}"
"-DGEANT4_USE_SYSTEM_ZLIB=${if zlib != null then "ON" else "OFF"}"
"-DGEANT4_BUILD_MULTITHREADED=${if enableMultiThreading then "ON" else "OFF"}"
] ++ lib.optionals stdenv.isDarwin [
"-DXQuartzGL_INCLUDE_DIR=${libGL.dev}/include"
"-DXQuartzGL_gl_LIBRARY=${libGL}/lib/libGL.dylib"
] ++ lib.optionals (enableMultiThreading && enablePython) [
"-DGEANT4_BUILD_TLS_MODEL=global-dynamic"
] ++ lib.optionals enableInventor [
@ -129,6 +132,6 @@ stdenv.mkDerivation rec {
homepage = "http://www.geant4.org";
license = licenses.g4sl;
maintainers = with maintainers; [ omnipotententity veprbl ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}