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