2017-01-07 07:36:51 +01:00
|
|
|
{ stdenv, fetchurl, gfortran, hepmc, fastjet, lhapdf, rivet, sqlite }:
|
2016-12-30 18:32:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sherpa-${version}";
|
2017-08-31 20:32:05 +02:00
|
|
|
version = "2.2.4";
|
2016-12-30 18:32:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.hepforge.org/archive/sherpa/SHERPA-MC-${version}.tar.gz";
|
2017-08-31 20:32:05 +02:00
|
|
|
sha256 = "1rw0ivx78zkbkl7nwil9i4fn8rvkifc3i20zrq3asbi4kb6brj2x";
|
2016-12-30 18:32:53 +01:00
|
|
|
};
|
|
|
|
|
2017-01-07 07:36:51 +01:00
|
|
|
buildInputs = [ gfortran sqlite lhapdf rivet ];
|
2016-12-30 18:32:53 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-05-02 06:54:42 +02:00
|
|
|
# LLVM 4 doesn't allow ambigous type in std::abs argument
|
|
|
|
patches = stdenv.lib.optional stdenv.cc.isClang [ ./explicit_overloads.patch ];
|
|
|
|
|
2017-01-07 07:36:51 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-sqlite3=${sqlite.dev}"
|
|
|
|
"--enable-hepmc2=${hepmc}"
|
|
|
|
"--enable-fastjet=${fastjet}"
|
|
|
|
"--enable-lhapdf=${lhapdf}"
|
|
|
|
"--enable-rivet=${rivet}"
|
|
|
|
];
|
|
|
|
|
|
|
|
CXXFLAGS = "-std=c++11"; # needed for rivet on OSX
|
2017-01-04 05:59:06 +01:00
|
|
|
|
2016-12-30 18:32:53 +01: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;
|
|
|
|
homepage = https://sherpa.hepforge.org;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|