sacrifice: init at 1.0.0
This commit is contained in:
parent
6aa5dc11f1
commit
3324d8dc72
12
pkgs/applications/science/physics/sacrifice/compat.patch
Normal file
12
pkgs/applications/science/physics/sacrifice/compat.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/src/PythiaMain.cxx b/src/PythiaMain.cxx
|
||||
index 0e5ddd2..2b626ab 100644
|
||||
--- a/src/PythiaMain.cxx
|
||||
+++ b/src/PythiaMain.cxx
|
||||
@@ -96,7 +96,6 @@ int main(int argc, char **argv){
|
||||
HepMCConverter pythiaToHepMC;
|
||||
|
||||
pythiaToHepMC.set_store_pdf(true);
|
||||
- pythiaToHepMC.set_crash_on_problem(true);
|
||||
|
||||
if(photosHandler.isEnabled()){
|
||||
photosHandler.initialise();
|
38
pkgs/applications/science/physics/sacrifice/default.nix
Normal file
38
pkgs/applications/science/physics/sacrifice/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ stdenv, fetchurl, boost, hepmc, lhapdf, pythia }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sacrifice-${version}";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.hepforge.org/archive/agile/Sacrifice-1.0.0.tar.gz";
|
||||
sha256 = "10bvpq63kmszy1habydwncm0j1dgvam0fkrmvkgbkvf804dcjp6g";
|
||||
};
|
||||
|
||||
buildInputs = [ boost hepmc lhapdf pythia ];
|
||||
|
||||
patches = [
|
||||
./compat.patch
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace configure --replace HAVE_LCG=yes HAVE_LCG=no
|
||||
''
|
||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace configure --replace LIB_SUFFIX=\"so\" LIB_SUFFIX=\"dylib\"
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-HepMC=${hepmc}"
|
||||
"--with-pythia=${pythia}"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "A standalone contribution to AGILe for steering Pythia 8";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
homepage = https://agile.hepforge.org/trac/wiki/Sacrifice;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -16366,6 +16366,10 @@ in
|
||||
cmake = cmakeCurses;
|
||||
});
|
||||
|
||||
### PHYSICS
|
||||
|
||||
sacrifice = callPackage ../applications/science/physics/sacrifice {};
|
||||
|
||||
### SCIENCE/PROGRAMMING
|
||||
|
||||
plm = callPackage ../applications/science/programming/plm { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user