linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / physics / fastnlo / default.nix
blob87e2ae9631c50116c410a4e60c52561f33e894f5
1 { lib
2 , stdenv
3 , fetchurl
4 , boost
5 , fastjet
6 , gfortran
7 , lhapdf
8 , python2
9 , root
10 , yoda
11 , zlib
14 stdenv.mkDerivation rec {
15   pname = "fastnlo_toolkit";
16   version = "2.3.1pre-2402";
18   src = fetchurl {
19     url = "https://fastnlo.hepforge.org/code/v23/${pname}-${version}.tar.gz";
20     sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
21   };
23   buildInputs = [
24     boost
25     fastjet
26     gfortran
27     gfortran.cc.lib
28     lhapdf
29     python2
30     root
31     yoda
32   ];
33   propagatedBuildInputs = [
34     zlib
35   ];
37   preConfigure = ''
38     substituteInPlace ./fastnlotoolkit/Makefile.in \
39       --replace "-fext-numeric-literals" ""
40   '';
42   configureFlags = [
43     "--with-yoda=${yoda}"
44   ];
46   enableParallelBuilding = true;
48   meta = with lib; {
49     homepage = "http://fastnlo.hepforge.org";
50     description = "Fast pQCD calculations for hadron-induced processes";
51     longDescription = ''
52       The fastNLO project provides computer code to create and evaluate fast
53       interpolation tables of pre-computed coefficients in perturbation theory
54       for observables in hadron-induced processes.
56       This allows fast theory predictions of these observables for arbitrary
57       parton distribution functions (of regular shape), renormalization or
58       factorization scale choices, and/or values of alpha_s(Mz) as e.g. needed
59       in PDF fits or in systematic studies. Very time consuming complete
60       recalculations are thus avoided.
61     '';
62     license = licenses.gpl3Plus;
63     maintainers = with maintainers; [ veprbl ];
64     platforms = platforms.unix;
65   };