Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 842 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 cmake, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "clhep"; 10 version = "2.4.7.1"; 11 12 src = fetchurl { 13 url = "https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-${version}.tgz"; 14 hash = "sha256-HIMEp3cqxrmRlfEwA3jG4930rQfIXWSgRQVlKruKVfk="; 15 }; 16 17 prePatch = '' 18 cd CLHEP 19 ''; 20 21 postPatch = '' 22 substituteInPlace CMakeLists.txt \ 23 --replace "clhep_ensure_out_of_source_build()" "" 24 ''; 25 26 nativeBuildInputs = [ 27 cmake 28 ]; 29 30 meta = with lib; { 31 description = "Set of HEP-specific foundation and utility classes such as random generators, physics vectors, geometry and linear algebra"; 32 homepage = "https://cern.ch/clhep"; 33 license = with licenses; [ 34 gpl3Only 35 lgpl3Only 36 ]; 37 maintainers = with maintainers; [ veprbl ]; 38 platforms = platforms.unix; 39 }; 40}