about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix
blob: e3291907d31fc7b357e963efb9c738478fb65156 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, boost, fastjet, gfortran, lhapdf, python2, root, yoda, zlib }:

stdenv.mkDerivation rec {
  name = "fastnlo_toolkit-${version}";
  version = "2.3.1pre-2402";

  src = fetchurl {
    url = "https://fastnlo.hepforge.org/code/v23/${name}.tar.gz";
    sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
  };

  buildInputs = [ boost fastjet gfortran gfortran.cc.lib lhapdf python2 root yoda ];
  propagatedBuildInputs = [ zlib ];

  preConfigure = ''
    substituteInPlace ./fastnlotoolkit/Makefile.in \
      --replace "-fext-numeric-literals" ""
  '';

  configureFlags = [
    "--with-yoda=${yoda}"
  ];

  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";
    license      = stdenv.lib.licenses.gpl3;
    homepage     = http://fastnlo.hepforge.org;
    platforms    = stdenv.lib.platforms.unix;
    maintainers = with stdenv.lib.maintainers; [ veprbl ];
  };
}