nixpkgs/pkgs/development/libraries/physics/mcgrid/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

31 lines
1.0 KiB
Nix

{ stdenv, fetchurl, fastnlo, rivet, pkgconfig, sherpa }:
stdenv.mkDerivation rec {
name = "mcgrid-${version}";
version = "2.0.2";
src = fetchurl {
url = "https://www.hepforge.org/archive/mcgrid/${name}.tar.gz";
sha256 = "1mw82x7zqbdchnd6shj3dirsav5i2cndp2hjwb8a8xdh4xh9zvfy";
};
buildInputs = [ fastnlo rivet ];
propagatedNativeBuildInputs = [ pkgconfig ];
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 ];
};
}