c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
36 lines
820 B
Nix
36 lines
820 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clhep";
|
|
version = "2.4.6.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-${version}.tgz";
|
|
hash = "sha256-6NFt67hM7SjkDproR4nPWgra1F+SE/usPOdYPgbKp7E=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|