herwig: init a 7.0.3
thepeg: init at 2.0.3
This commit is contained in:
parent
1c855085cd
commit
fd95f8f824
44
pkgs/development/libraries/physics/herwig/default.nix
Normal file
44
pkgs/development/libraries/physics/herwig/default.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{ stdenv, fetchpatch, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "herwig-${version}";
|
||||||
|
version = "7.0.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
|
||||||
|
sha256 = "0v7b84n0v3dhjpx0vfk5p8g87kivgg9svfivnih1yrfm749269m2";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Otherwise it causes an error
|
||||||
|
# lib/Herwig/HwMatchboxScales.so: undefined symbol: _Z8renScaleSt6vectorIN6ThePEG14Lorentz5VectorIdEESaIS2_EES4_S4_
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://herwig.hepforge.org/hg/herwig/rev/fe543583fa02?style=raw";
|
||||||
|
sha256 = "1y6a9q93wicw3c73xni74w5k25vidgcr60ffi2b2ymhb390jas83";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoconf automake libtool ];
|
||||||
|
|
||||||
|
buildInputs = [ boost fastjet gfortran gsl thepeg zlib ]
|
||||||
|
# There is a bug that requires for MMHT PDF's to be presend during the build
|
||||||
|
++ (with lhapdf.pdf_sets; [ MMHT2014lo68cl MMHT2014nlo68cl ]);
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
# needed for the patch above
|
||||||
|
autoreconf -i
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--with-thepeg=${thepeg}"
|
||||||
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A multi-purpose particle physics event generator";
|
||||||
|
license = stdenv.lib.licenses.gpl2;
|
||||||
|
homepage = https://herwig.hepforge.org/;
|
||||||
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
27
pkgs/development/libraries/physics/thepeg/default.nix
Normal file
27
pkgs/development/libraries/physics/thepeg/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, fetchurl, boost, fastjet, gsl, hepmc, lhapdf, rivet, zlib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "thepeg-${version}";
|
||||||
|
version = "2.0.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.hepforge.org/archive/thepeg/ThePEG-${version}.tar.bz2";
|
||||||
|
sha256 = "0d26linwv92iq23n4gx154jvyd0lz5vg41kf4nxa01nspy7scyy5";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ boost fastjet gsl hepmc lhapdf rivet zlib ];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--with-hepmc=${hepmc}"
|
||||||
|
"--without-javagui"
|
||||||
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Toolkit for High Energy Physics Event Generation";
|
||||||
|
license = stdenv.lib.licenses.gpl2;
|
||||||
|
homepage = https://herwig.hepforge.org/;
|
||||||
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -16719,10 +16719,14 @@ in
|
|||||||
|
|
||||||
hepmc = callPackage ../development/libraries/physics/hepmc { };
|
hepmc = callPackage ../development/libraries/physics/hepmc { };
|
||||||
|
|
||||||
|
herwig = callPackage ../development/libraries/physics/herwig { };
|
||||||
|
|
||||||
lhapdf = callPackage ../development/libraries/physics/lhapdf { };
|
lhapdf = callPackage ../development/libraries/physics/lhapdf { };
|
||||||
|
|
||||||
rivet = callPackage ../development/libraries/physics/rivet { };
|
rivet = callPackage ../development/libraries/physics/rivet { };
|
||||||
|
|
||||||
|
thepeg = callPackage ../development/libraries/physics/thepeg { };
|
||||||
|
|
||||||
yoda = callPackage ../development/libraries/physics/yoda { };
|
yoda = callPackage ../development/libraries/physics/yoda { };
|
||||||
|
|
||||||
### MISC
|
### MISC
|
||||||
|
Loading…
Reference in New Issue
Block a user