nixpkgs/pkgs/applications/science/physics/sherpa/default.nix

34 lines
1.0 KiB
Nix
Raw Normal View History

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 {
pname = "sherpa";
2019-01-23 15:45:12 -08:00
version = "2.2.6";
2016-12-30 09:32:53 -08:00
src = fetchurl {
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 ];
};
}