git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.fastnlo_toolkit: init
commit4c00f66ef6f937581c96206fdf154cbe05a7dea9 authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateSat 24 Apr 2021, 08:41 (6 years ago) parentdd5c766
2 files changed+17−9
pkgs/development/libraries/physics/fastnlo_toolkit/default.nix+12−9 pkgs/top-level/python-packages.nix+5
pkgs/development/libraries/physics/fastnlo_toolkit/default.nix+12−9
@@ -1,14 +1,16 @@
11{ lib
22, stdenv
33, fetchurl
4+, autoreconfHook
45, boost
5−, fastjet
66, gfortran
77, lhapdf
8−, python2
9−, root
8+, ncurses
9+, python
10+, swig
1011, yoda
1112, zlib
13+, withPython ? false
1214}:
1315
1416stdenv.mkDerivation rec {
@@ -20,19 +22,20 @@ stdenv.mkDerivation rec {
2022 sha256 = "0fm9k732pmi3prbicj2yaq815nmcjll95fagjqzf542ng3swpqnb";
2123 };
2224
25+ nativeBuildInputs = lib.optional withPython autoreconfHook;
26+
2327 buildInputs = [
2428 boost
25− fastjet
2629 gfortran
2730 gfortran.cc.lib
2831 lhapdf
29− python2
30− root
3132 yoda
32− ];
33+ ] ++ lib.optional withPython python
34+ ++ lib.optional (withPython && python.isPy3k) ncurses;
35+
3336 propagatedBuildInputs = [
3437 zlib
35− ];
38+ ] ++ lib.optional withPython swig;
3639
3740 preConfigure = ''
3841 substituteInPlace ./fastnlotoolkit/Makefile.in \
@@ -41,7 +44,7 @@ stdenv.mkDerivation rec {
4144
4245 configureFlags = [
4346 "--with-yoda=${yoda}"
44− ];
47+ ] ++ lib.optional withPython "--enable-pyext";
4548
4649 enableParallelBuilding = true;
4750
pkgs/top-level/python-packages.nix+5
@@ -2373,6 +2373,11 @@ in {
23732373
23742374 fastjsonschema = callPackage ../development/python-modules/fastjsonschema { };
23752375
2376+ fastnlo_toolkit = toPythonModule (pkgs.fastnlo_toolkit.override {
2377+ withPython = true;
2378+ inherit python;
2379+ });
2380+
23762381 fastpair = callPackage ../development/python-modules/fastpair { };
23772382
23782383 fastparquet = callPackage ../development/python-modules/fastparquet { };