Merge pull request #120524 from veprbl/pr/fastnlo_2411

fastnlo_toolkit: 2.3.1pre-2402 -> 2.3.1pre-2411, enable python, rename

Changed files
+25 -13
pkgs
development
libraries
physics
fastnlo_toolkit
top-level
+18 -12
pkgs/development/libraries/physics/fastnlo/default.nix pkgs/development/libraries/physics/fastnlo_toolkit/default.nix
···
{ lib
, stdenv
, fetchurl
+
, autoreconfHook
, boost
-
, fastjet
, gfortran
, lhapdf
-
, python2
-
, root
+
, ncurses
+
, python
+
, swig
, yoda
, zlib
+
, withPython ? false
}:
stdenv.mkDerivation rec {
pname = "fastnlo_toolkit";
-
version = "2.3.1pre-2402";
+
version = "2.3.1pre-2411";
src = fetchurl {
-
url = "https://fastnlo.hepforge.org/code/v23/${pname}-${version}.tar.gz";
-
sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
+
urls = [
+
"https://fastnlo.hepforge.org/code/v23/${pname}-${version}.tar.gz"
+
"https://sid.ethz.ch/debian/fastnlo/${pname}-${version}.tar.gz"
+
];
+
sha256 = "0fm9k732pmi3prbicj2yaq815nmcjll95fagjqzf542ng3swpqnb";
};
+
+
nativeBuildInputs = lib.optional withPython autoreconfHook;
buildInputs = [
boost
-
fastjet
gfortran
gfortran.cc.lib
lhapdf
-
python2
-
root
yoda
-
];
+
] ++ lib.optional withPython python
+
++ lib.optional (withPython && python.isPy3k) ncurses;
+
propagatedBuildInputs = [
zlib
-
];
+
] ++ lib.optional withPython swig;
preConfigure = ''
substituteInPlace ./fastnlotoolkit/Makefile.in \
···
configureFlags = [
"--with-yoda=${yoda}"
-
];
+
] ++ lib.optional withPython "--enable-pyext";
enableParallelBuilding = true;
+1
pkgs/top-level/aliases.nix
···
exfat-utils = exfat; # 2015-09-11
facette = throw "facette has been removed."; # added 2020-01-06
fast-neural-doodle = throw "fast-neural-doodle has been removed, as the upstream project has been abandoned"; # added 2020-03-28
+
fastnlo = fastnlo_toolkit; # added 2021-04-24
fedora-coreos-config-transpiler = throw "fedora-coreos-config-transpiler has been renamed to 'butane'."; # added 2021-04-13
fetchFromGithub = throw "You meant fetchFromGitHub, with a capital H.";
ffadoFull = ffado; # added 2018-05-01
+1 -1
pkgs/top-level/all-packages.nix
···
fastjet-contrib = callPackage ../development/libraries/physics/fastjet-contrib { };
-
fastnlo = callPackage ../development/libraries/physics/fastnlo { };
+
fastnlo_toolkit = callPackage ../development/libraries/physics/fastnlo_toolkit { };
geant4 = libsForQt5.callPackage ../development/libraries/physics/geant4 { };
+5
pkgs/top-level/python-packages.nix
···
fastjsonschema = callPackage ../development/python-modules/fastjsonschema { };
+
fastnlo_toolkit = toPythonModule (pkgs.fastnlo_toolkit.override {
+
withPython = true;
+
inherit python;
+
});
+
fastpair = callPackage ../development/python-modules/fastpair { };
fastparquet = callPackage ../development/python-modules/fastparquet { };