Merge pull request #131970 from veprbl/pr/fastnlo_toolkit_2823
fastnlo_toolkit: 2.3.1pre-2411 -> 2.5.0pre-2823
This commit is contained in:
commit
0a05dc3029
|
@ -1,11 +1,12 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchurl
|
, fetchFromGitLab
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, boost
|
, boost
|
||||||
, gfortran
|
, gfortran
|
||||||
, lhapdf
|
, lhapdf
|
||||||
, ncurses
|
, ncurses
|
||||||
|
, perl
|
||||||
, python ? null
|
, python ? null
|
||||||
, swig
|
, swig
|
||||||
, yoda
|
, yoda
|
||||||
|
@ -13,19 +14,28 @@
|
||||||
, withPython ? false
|
, withPython ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
tag = "2823";
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fastnlo_toolkit";
|
pname = "fastnlo_toolkit";
|
||||||
version = "2.3.1pre-2411";
|
version = "2.5.0pre-${tag}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitLab {
|
||||||
urls = [
|
domain = "gitlab.etp.kit.edu";
|
||||||
"https://fastnlo.hepforge.org/code/v23/${pname}-${version}.tar.gz"
|
owner = "qcd-public";
|
||||||
"https://sid.ethz.ch/debian/fastnlo/${pname}-${version}.tar.gz"
|
repo = "fastNLO";
|
||||||
];
|
rev = tag;
|
||||||
sha256 = "0fm9k732pmi3prbicj2yaq815nmcjll95fagjqzf542ng3swpqnb";
|
hash = "sha256-FEKnEnK90tT4BJJ6MLva9lCl3aYzO1YGdx/8Ol2vM7M=";
|
||||||
};
|
} + /v2.5/toolkit;
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional withPython autoreconfHook;
|
postPatch = ''
|
||||||
|
# remove duplicate macro, to fix for autoconf 2.70
|
||||||
|
sed -e '0,/AC_CONFIG_MACRO_DIR\([m4]\)/{/AC_CONFIG_MACRO_DIR/d}' -i configure.ac
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
boost
|
||||||
|
@ -51,6 +61,16 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkInputs = [
|
||||||
|
perl
|
||||||
|
lhapdf.pdf_sets.CT10nlo
|
||||||
|
];
|
||||||
|
preCheck = ''
|
||||||
|
patchShebangs --build check
|
||||||
|
'';
|
||||||
|
enableParallelChecking = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://fastnlo.hepforge.org";
|
homepage = "http://fastnlo.hepforge.org";
|
||||||
description = "Fast pQCD calculations for hadron-induced processes";
|
description = "Fast pQCD calculations for hadron-induced processes";
|
||||||
|
@ -68,5 +88,6 @@ stdenv.mkDerivation rec {
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ veprbl ];
|
maintainers = with maintainers; [ veprbl ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
broken = stdenv.isAarch64; # failing test "fnlo-tk-stattest.pl"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue