nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix

34 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, fastjet, gfortran, lhapdf, python2, root, yoda, zlib }:
2016-12-30 17:32:03 +00:00
stdenv.mkDerivation rec {
name = "fastnlo_toolkit-${version}";
version = "2.3.1pre-2402";
2016-12-30 17:32:03 +00:00
src = fetchurl {
url = "http://fastnlo.hepforge.org/code/v23/${name}.tar.gz";
sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
2016-12-30 17:32:03 +00:00
};
buildInputs = [ boost fastjet gfortran gfortran.cc.lib lhapdf python2 root yoda ];
propagatedBuildInputs = [ zlib ];
2016-12-30 17:32:03 +00:00
preConfigure = ''
substituteInPlace ./fastnlotoolkit/Makefile.in \
--replace "-fext-numeric-literals" ""
'';
2017-01-09 07:24:27 +00:00
configureFlags = [
"--with-yoda=${yoda}"
];
2016-12-30 17:32:03 +00:00
enableParallelBuilding = true;
meta = {
description = "A computer code to create and evaluate fast interpolation tables of pre-computed coefficients in perturbation theory for observables in hadron-induced processes";
2016-12-30 17:32:03 +00:00
license = stdenv.lib.licenses.gpl3;
homepage = http://fastnlo.hepforge.org;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
};
}