diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-05-07 11:48:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 11:48:33 -0400 |
commit | d2e027aa445bc132c64c39354f5d6567f9520e2c (patch) | |
tree | ef9ed59b0fd068f1b48947d5672a2f523427c0b1 /pkgs/development/libraries/physics | |
parent | 26e6a9d8695b0ca64c959d94b15ef0879d1ebf1a (diff) | |
parent | f0c328e4a4392f5b5798471dc131605880169bdb (diff) |
Merge pull request #120524 from veprbl/pr/fastnlo_2411
fastnlo_toolkit: 2.3.1pre-2402 -> 2.3.1pre-2411, enable python, rename
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r-- | pkgs/development/libraries/physics/fastnlo_toolkit/default.nix (renamed from pkgs/development/libraries/physics/fastnlo/default.nix) | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/pkgs/development/libraries/physics/fastnlo/default.nix b/pkgs/development/libraries/physics/fastnlo_toolkit/default.nix index 87e2ae9631c50..d6cbe7cc4dd02 100644 --- a/pkgs/development/libraries/physics/fastnlo/default.nix +++ b/pkgs/development/libraries/physics/fastnlo_toolkit/default.nix @@ -1,38 +1,44 @@ { 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 \ @@ -41,7 +47,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-yoda=${yoda}" - ]; + ] ++ lib.optional withPython "--enable-pyext"; enableParallelBuilding = true; |