16 stdenv.mkDerivation rec {
17 pname = "fastnlo_toolkit";
18 version = "2.5.0-2826";
21 url = "https://fastnlo.hepforge.org/code/v25/fastnlo_toolkit-${version}.tar.gz";
22 sha256 = "sha256-7aIMYCOkHC/17CHYiEfrxvtSJxTDivrS7BQ32cGiEy0=";
31 ] ++ lib.optional withPython python
32 ++ lib.optional (withPython && python.isPy3k) ncurses;
34 propagatedBuildInputs = [
36 ] ++ lib.optional withPython swig;
39 substituteInPlace ./fastnlotoolkit/Makefile.in \
40 --replace "-fext-numeric-literals" ""
42 # disable test that fails due to strict floating-point number comparison
43 echo "#!/usr/bin/env perl" > check/fnlo-tk-stattest.pl.in
44 chmod +x check/fnlo-tk-stattest.pl.in
49 ] ++ lib.optional withPython "--enable-pyext";
51 enableParallelBuilding = true;
56 lhapdf.pdf_sets.CT10nlo
59 patchShebangs --build check
61 enableParallelChecking = false;
64 homepage = "http://fastnlo.hepforge.org";
65 description = "Fast pQCD calculations for hadron-induced processes";
67 The fastNLO project provides computer code to create and evaluate fast
68 interpolation tables of pre-computed coefficients in perturbation theory
69 for observables in hadron-induced processes.
71 This allows fast theory predictions of these observables for arbitrary
72 parton distribution functions (of regular shape), renormalization or
73 factorization scale choices, and/or values of alpha_s(Mz) as e.g. needed
74 in PDF fits or in systematic studies. Very time consuming complete
75 recalculations are thus avoided.
77 license = licenses.gpl3Plus;
78 maintainers = with maintainers; [ veprbl ];
79 platforms = platforms.unix;