pythonPackages.fastnlo_toolkit: init
This commit is contained in:
parent
dd5c766078
commit
4c00f66ef6
2 changed files with 17 additions and 9 deletions
|
@ -1,14 +1,16 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, autoreconfHook
|
||||||
, boost
|
, boost
|
||||||
, fastjet
|
|
||||||
, gfortran
|
, gfortran
|
||||||
, lhapdf
|
, lhapdf
|
||||||
, python2
|
, ncurses
|
||||||
, root
|
, python
|
||||||
|
, swig
|
||||||
, yoda
|
, yoda
|
||||||
, zlib
|
, zlib
|
||||||
|
, withPython ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -20,19 +22,20 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0fm9k732pmi3prbicj2yaq815nmcjll95fagjqzf542ng3swpqnb";
|
sha256 = "0fm9k732pmi3prbicj2yaq815nmcjll95fagjqzf542ng3swpqnb";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = lib.optional withPython autoreconfHook;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
boost
|
||||||
fastjet
|
|
||||||
gfortran
|
gfortran
|
||||||
gfortran.cc.lib
|
gfortran.cc.lib
|
||||||
lhapdf
|
lhapdf
|
||||||
python2
|
|
||||||
root
|
|
||||||
yoda
|
yoda
|
||||||
];
|
] ++ lib.optional withPython python
|
||||||
|
++ lib.optional (withPython && python.isPy3k) ncurses;
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
zlib
|
zlib
|
||||||
];
|
] ++ lib.optional withPython swig;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace ./fastnlotoolkit/Makefile.in \
|
substituteInPlace ./fastnlotoolkit/Makefile.in \
|
||||||
|
@ -41,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-yoda=${yoda}"
|
"--with-yoda=${yoda}"
|
||||||
];
|
] ++ lib.optional withPython "--enable-pyext";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
|
|
@ -2373,6 +2373,11 @@ in {
|
||||||
|
|
||||||
fastjsonschema = callPackage ../development/python-modules/fastjsonschema { };
|
fastjsonschema = callPackage ../development/python-modules/fastjsonschema { };
|
||||||
|
|
||||||
|
fastnlo_toolkit = toPythonModule (pkgs.fastnlo_toolkit.override {
|
||||||
|
withPython = true;
|
||||||
|
inherit python;
|
||||||
|
});
|
||||||
|
|
||||||
fastpair = callPackage ../development/python-modules/fastpair { };
|
fastpair = callPackage ../development/python-modules/fastpair { };
|
||||||
|
|
||||||
fastparquet = callPackage ../development/python-modules/fastparquet { };
|
fastparquet = callPackage ../development/python-modules/fastparquet { };
|
||||||
|
|
Loading…
Reference in a new issue