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