git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #131970 from veprbl/pr/fastnlo_toolkit_2823

fastnlo_toolkit: 2.3.1pre-2411 -> 2.5.0pre-2823

commit0a05dc30291f6f90b1d9c18e9f25745eb04fe522 authorRobert Hensing <roberth@users.noreply.github.com> dateSun 8 Aug 2021, 21:07 (5 years ago) parent10a8a92a1a34f7
1 file changed+31−10
pkgs/development/libraries/physics/fastnlo_toolkit/default.nix+31−10
pkgs/development/libraries/physics/fastnlo_toolkit/default.nix+31−10
@@ -1,11 +1,12 @@
11{ lib
22, stdenv
3−, fetchurl
3+, fetchFromGitLab
44, autoreconfHook
55, boost
66, gfortran
77, lhapdf
88, ncurses
9+, perl
910, python ? null
1011, swig
1112, yoda
@@ -13,19 +14,28 @@
1314, withPython ? false
1415}:
1516
17+let
18+ tag = "2823";
19+in
20+
1621stdenv.mkDerivation rec {
1722 pname = "fastnlo_toolkit";
18− version = "2.3.1pre-2411";
23+ version = "2.5.0pre-${tag}";
1924
20− src = fetchurl {
21− urls = [
22− "https://fastnlo.hepforge.org/code/v23/${pname}-${version}.tar.gz"
23− "https://sid.ethz.ch/debian/fastnlo/${pname}-${version}.tar.gz"
24− ];
25− sha256 = "0fm9k732pmi3prbicj2yaq815nmcjll95fagjqzf542ng3swpqnb";
26− };
25+ src = fetchFromGitLab {
26+ domain = "gitlab.etp.kit.edu";
27+ owner = "qcd-public";
28+ repo = "fastNLO";
29+ rev = tag;
30+ hash = "sha256-FEKnEnK90tT4BJJ6MLva9lCl3aYzO1YGdx/8Ol2vM7M=";
31+ } + /v2.5/toolkit;
32+
33+ postPatch = ''
34+ # remove duplicate macro, to fix for autoconf 2.70
35+ sed -e '0,/AC_CONFIG_MACRO_DIR\([m4]\)/{/AC_CONFIG_MACRO_DIR/d}' -i configure.ac
36+ '';
2737
28− nativeBuildInputs = lib.optional withPython autoreconfHook;
38+ nativeBuildInputs = [ autoreconfHook ];
2939
3040 buildInputs = [
3141 boost
@@ -51,6 +61,16 @@ stdenv.mkDerivation rec {
5161
5262 enableParallelBuilding = true;
5363
64+ doCheck = true;
65+ checkInputs = [
66+ perl
67+ lhapdf.pdf_sets.CT10nlo
68+ ];
69+ preCheck = ''
70+ patchShebangs --build check
71+ '';
72+ enableParallelChecking = false;
73+
5474 meta = with lib; {
5575 homepage = "http://fastnlo.hepforge.org";
5676 description = "Fast pQCD calculations for hadron-induced processes";
@@ -68,5 +88,6 @@ stdenv.mkDerivation rec {
6888 license = licenses.gpl3Plus;
6989 maintainers = with maintainers; [ veprbl ];
7090 platforms = platforms.unix;
91+ broken = stdenv.isAarch64; # failing test "fnlo-tk-stattest.pl"
7192 };
7293}