2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, fastnlo, rivet, pkgconfig }:
|
2016-12-30 17:33:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mcgrid";
|
2016-12-30 17:33:51 +00:00
|
|
|
version = "2.0.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.hepforge.org/archive/mcgrid/${pname}-${version}.tar.gz";
|
2016-12-30 17:33:51 +00:00
|
|
|
sha256 = "1mw82x7zqbdchnd6shj3dirsav5i2cndp2hjwb8a8xdh4xh9zvfy";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fastnlo rivet ];
|
2017-01-09 02:16:52 +00:00
|
|
|
propagatedNativeBuildInputs = [ pkgconfig ];
|
2016-12-30 17:33:51 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace mcgrid.pc.in \
|
|
|
|
--replace "Cflags:" "Cflags: -std=c++11"
|
|
|
|
'';
|
|
|
|
|
|
|
|
CXXFLAGS = "-std=c++11";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A software package that provides access to the APPLgrid and fastNLO interpolation tools for Monte Carlo event generator codes, allowing for fast and flexible variations of scales, coupling parameters and PDFs in cutting edge leading- and next-to-leading-order QCD calculations";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
homepage = http://mcgrid.hepforge.org;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|