diff --git a/pkgs/development/libraries/physics/geant4/default.nix b/pkgs/development/libraries/physics/geant4/default.nix index 26363f9d497..5fb22058065 100644 --- a/pkgs/development/libraries/physics/geant4/default.nix +++ b/pkgs/development/libraries/physics/geant4/default.nix @@ -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; }; }