2019-08-05 13:54:56 -07:00
|
|
|
{ stdenv, fetchurl, gfortran, hepmc2, fastjet, lhapdf, rivet, sqlite }:
|
2016-12-30 09:32:53 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "sherpa";
|
2019-01-23 15:45:12 -08:00
|
|
|
version = "2.2.6";
|
2016-12-30 09:32:53 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://www.hepforge.org/archive/sherpa/SHERPA-MC-${version}.tar.gz";
|
2019-01-23 15:45:12 -08:00
|
|
|
sha256 = "1cagkkz1pjl0pdf85w1qkwhx0afi3kxm1vnmfavq1zqhss7fc57i";
|
2016-12-30 09:32:53 -08:00
|
|
|
};
|
|
|
|
|
2017-01-06 22:36:51 -08:00
|
|
|
buildInputs = [ gfortran sqlite lhapdf rivet ];
|
2016-12-30 09:32:53 -08:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-01-06 22:36:51 -08:00
|
|
|
configureFlags = [
|
|
|
|
"--with-sqlite3=${sqlite.dev}"
|
2019-08-05 13:54:56 -07:00
|
|
|
"--enable-hepmc2=${hepmc2}"
|
2017-01-06 22:36:51 -08:00
|
|
|
"--enable-fastjet=${fastjet}"
|
|
|
|
"--enable-lhapdf=${lhapdf}"
|
|
|
|
"--enable-rivet=${rivet}"
|
|
|
|
];
|
|
|
|
|
|
|
|
CXXFLAGS = "-std=c++11"; # needed for rivet on OSX
|
2017-01-03 20:59:06 -08:00
|
|
|
|
2016-12-30 09:32:53 -08: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 15:45:12 -08:00
|
|
|
homepage = https://gitlab.com/sherpa-team/sherpa;
|
2016-12-30 09:32:53 -08:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|