lol

sacrifice: init at 1.0.0

+54
+12
pkgs/applications/science/physics/sacrifice/compat.patch
··· 1 + diff --git a/src/PythiaMain.cxx b/src/PythiaMain.cxx 2 + index 0e5ddd2..2b626ab 100644 3 + --- a/src/PythiaMain.cxx 4 + +++ b/src/PythiaMain.cxx 5 + @@ -96,7 +96,6 @@ int main(int argc, char **argv){ 6 + HepMCConverter pythiaToHepMC; 7 + 8 + pythiaToHepMC.set_store_pdf(true); 9 + - pythiaToHepMC.set_crash_on_problem(true); 10 + 11 + if(photosHandler.isEnabled()){ 12 + photosHandler.initialise();
+38
pkgs/applications/science/physics/sacrifice/default.nix
··· 1 + { stdenv, fetchurl, boost, hepmc, lhapdf, pythia }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "sacrifice-${version}"; 5 + version = "1.0.0"; 6 + 7 + src = fetchurl { 8 + url = "http://www.hepforge.org/archive/agile/Sacrifice-1.0.0.tar.gz"; 9 + sha256 = "10bvpq63kmszy1habydwncm0j1dgvam0fkrmvkgbkvf804dcjp6g"; 10 + }; 11 + 12 + buildInputs = [ boost hepmc lhapdf pythia ]; 13 + 14 + patches = [ 15 + ./compat.patch 16 + ]; 17 + 18 + preConfigure = '' 19 + substituteInPlace configure --replace HAVE_LCG=yes HAVE_LCG=no 20 + '' 21 + + stdenv.lib.optionalString stdenv.isDarwin '' 22 + substituteInPlace configure --replace LIB_SUFFIX=\"so\" LIB_SUFFIX=\"dylib\" 23 + ''; 24 + 25 + configureFlags = [ 26 + "--with-HepMC=${hepmc}" 27 + "--with-pythia=${pythia}" 28 + ]; 29 + 30 + enableParallelBuilding = true; 31 + 32 + meta = { 33 + description = "A standalone contribution to AGILe for steering Pythia 8"; 34 + license = stdenv.lib.licenses.gpl2; 35 + homepage = https://agile.hepforge.org/trac/wiki/Sacrifice; 36 + platforms = stdenv.lib.platforms.unix; 37 + }; 38 + }
+4
pkgs/top-level/all-packages.nix
··· 16366 16366 cmake = cmakeCurses; 16367 16367 }); 16368 16368 16369 + ### PHYSICS 16370 + 16371 + sacrifice = callPackage ../applications/science/physics/sacrifice {}; 16372 + 16369 16373 ### SCIENCE/PROGRAMMING 16370 16374 16371 16375 plm = callPackage ../applications/science/programming/plm { };