diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-04-24 08:41:51 -0400 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-05-01 14:38:48 -0400 |
commit | 4c00f66ef6f937581c96206fdf154cbe05a7dea9 (patch) | |
tree | eef311bca804cef76ab98649d49c640e341ccf23 /pkgs/development/libraries/physics | |
parent | dd5c76607882b5981e91e4cca86873d43763d615 (diff) | |
download | nixpkgs-4c00f66ef6f937581c96206fdf154cbe05a7dea9.tar nixpkgs-4c00f66ef6f937581c96206fdf154cbe05a7dea9.tar.gz nixpkgs-4c00f66ef6f937581c96206fdf154cbe05a7dea9.tar.bz2 nixpkgs-4c00f66ef6f937581c96206fdf154cbe05a7dea9.tar.lz nixpkgs-4c00f66ef6f937581c96206fdf154cbe05a7dea9.tar.xz nixpkgs-4c00f66ef6f937581c96206fdf154cbe05a7dea9.tar.zst nixpkgs-4c00f66ef6f937581c96206fdf154cbe05a7dea9.zip |
pythonPackages.fastnlo_toolkit: init
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r-- | pkgs/development/libraries/physics/fastnlo_toolkit/default.nix | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/development/libraries/physics/fastnlo_toolkit/default.nix b/pkgs/development/libraries/physics/fastnlo_toolkit/default.nix index cbea1abf0d0..e01638e285b 100644 --- a/pkgs/development/libraries/physics/fastnlo_toolkit/default.nix +++ b/pkgs/development/libraries/physics/fastnlo_toolkit/default.nix @@ -1,14 +1,16 @@ { lib , stdenv , fetchurl +, autoreconfHook , boost -, fastjet , gfortran , lhapdf -, python2 -, root +, ncurses +, python +, swig , yoda , zlib +, withPython ? false }: stdenv.mkDerivation rec { @@ -20,19 +22,20 @@ stdenv.mkDerivation rec { 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 +44,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-yoda=${yoda}" - ]; + ] ++ lib.optional withPython "--enable-pyext"; enableParallelBuilding = true; |