nixpkgs/pkgs/by-name/cl/clhep/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
820 B
Nix
Raw Normal View History

2022-07-17 00:49:36 +01:00
{ lib
, stdenv
, fetchurl
, cmake
}:
stdenv.mkDerivation rec {
pname = "clhep";
2023-10-29 21:39:11 +00:00
version = "2.4.7.1";
2022-07-17 00:49:36 +01:00
src = fetchurl {
url = "https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-${version}.tgz";
2023-10-29 21:39:11 +00:00
hash = "sha256-HIMEp3cqxrmRlfEwA3jG4930rQfIXWSgRQVlKruKVfk=";
2022-07-17 00:49:36 +01:00
};
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;
};
}