2019-08-05 21:54:56 +01:00
|
|
|
{ stdenv, fetchurl, gfortran, hepmc2, fastjet, lhapdf, rivet, sqlite }:
|
2016-12-30 17:32:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sherpa-${version}";
|
2019-01-23 23:45:12 +00:00
|
|
|
version = "2.2.6";
|
2016-12-30 17:32:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.hepforge.org/archive/sherpa/SHERPA-MC-${version}.tar.gz";
|
2019-01-23 23:45:12 +00:00
|
|
|
sha256 = "1cagkkz1pjl0pdf85w1qkwhx0afi3kxm1vnmfavq1zqhss7fc57i";
|
2016-12-30 17:32:53 +00:00
|
|
|
};
|
|
|
|
|
2017-01-07 06:36:51 +00:00
|
|
|
buildInputs = [ gfortran sqlite lhapdf rivet ];
|
2016-12-30 17:32:53 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-01-07 06:36:51 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-sqlite3=${sqlite.dev}"
|
2019-08-05 21:54:56 +01:00
|
|
|
"--enable-hepmc2=${hepmc2}"
|
2017-01-07 06:36:51 +00:00
|
|
|
"--enable-fastjet=${fastjet}"
|
|
|
|
"--enable-lhapdf=${lhapdf}"
|
|
|
|
"--enable-rivet=${rivet}"
|
|
|
|
];
|
|
|
|
|
|
|
|
CXXFLAGS = "-std=c++11"; # needed for rivet on OSX
|
2017-01-04 04:59:06 +00:00
|
|
|
|
2016-12-30 17:32:53 +00:00
|
|
|
meta = {
|
|
|
|
description = "Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2019-01-23 23:45:12 +00:00
|
|
|
homepage = https://gitlab.com/sherpa-team/sherpa;
|
2016-12-30 17:32:53 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|