clhep: init at 2.4.5.3

This commit is contained in:
Dmitry Kalinkin 2022-07-16 19:49:36 -04:00
parent 099062bd36
commit 8d10015d3a
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
3 changed files with 42 additions and 4 deletions

View File

@ -0,0 +1,36 @@
{ lib
, stdenv
, fetchurl
, cmake
}:
stdenv.mkDerivation rec {
pname = "clhep";
version = "2.4.5.3";
src = fetchurl {
url = "https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-${version}.tgz";
hash = "sha256-RfY+6wl/Av5nuGp9rb8Q1Am0AcKKGj4XLbNiUsMJfBM=";
};
prePatch = ''
cd CLHEP
'';
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "clhep_ensure_out_of_source_build()" ""
'';
nativeBuildInputs = [
cmake
];
meta = with lib; {
description = "Set of HEP-specific foundation and utility classes such as random generators, physics vectors, geometry and linear algebra";
homepage = "https://cern.ch/clhep";
license = with licenses; [ gpl3Only lgpl3Only ];
maintainers = with maintainers; [ veprbl ];
platforms = platforms.unix;
};
}

View File

@ -10,7 +10,7 @@
# Standard build environment with cmake.
, lib, stdenv, fetchurl, fetchpatch, cmake
, clhep ? null # not packaged currently
, clhep
, expat
, xercesc
, zlib
@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
"-DGEANT4_USE_INVENTOR=${if enableInventor then "ON" else "OFF"}"
"-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_CLHEP=ON"
"-DGEANT4_USE_SYSTEM_EXPAT=ON"
"-DGEANT4_USE_SYSTEM_ZLIB=ON"
"-DGEANT4_BUILD_MULTITHREADED=${if enableMultiThreading then "ON" else "OFF"}"
@ -88,11 +88,11 @@ stdenv.mkDerivation rec {
];
dontWrapQtApps = true; # no binaries
buildInputs = [ libGLU xlibsWrapper libXmu ]
buildInputs = [ clhep libGLU xlibsWrapper libXmu ]
++ lib.optionals enableInventor [ libXpm coin3d soxt motif ]
++ lib.optionals enablePython [ boost_python python3 ];
propagatedBuildInputs = [ clhep expat xercesc zlib libGL ]
propagatedBuildInputs = [ expat xercesc zlib libGL ]
++ lib.optionals enableXM [ motif ]
++ lib.optionals enableQt [ qtbase ];

View File

@ -34343,6 +34343,8 @@ with pkgs;
cernlib = callPackage ../development/libraries/physics/cernlib { };
clhep = callPackage ../development/libraries/physics/clhep { };
hepmc2 = callPackage ../development/libraries/physics/hepmc2 { };
hepmc3 = callPackage ../development/libraries/physics/hepmc3 {