Skip to content

Commit 5b93a4e

Browse files
fastnlo-toolkit: fix and enable strictDeps
Also remove the currently unused gfortran inputs. Co-Authored-By: veprbl <[email protected]>
1 parent 0852807 commit 5b93a4e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pkgs/by-name/fa/fastnlo-toolkit/package.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
stdenv,
44
fetchurl,
55
boost,
6-
gfortran,
76
lhapdf,
87
ncurses,
98
perl,
@@ -35,23 +34,26 @@ stdenv.mkDerivation rec {
3534
./yoda2_support.patch
3635
];
3736

37+
nativeBuildInputs = [
38+
lhapdf # lhapdf-config
39+
yoda # yoda-config
40+
] ++ lib.optional withPython python;
41+
3842
buildInputs =
3943
[
4044
boost
41-
gfortran
42-
gfortran.cc.lib
4345
lhapdf
4446
yoda
4547
]
4648
++ lib.optional withPython python
4749
++ lib.optional (withPython && python.isPy3k) ncurses;
4850

51+
propagatedNativeBuildInputs = lib.optional withPython [ swig ];
4952
propagatedBuildInputs =
5053
[
5154
zlib
5255
]
5356
++ lib.optional withPython [
54-
swig
5557
python.pkgs.distutils
5658
];
5759

@@ -68,6 +70,8 @@ stdenv.mkDerivation rec {
6870
"--with-yoda=${yoda}"
6971
] ++ lib.optional withPython "--enable-pyext";
7072

73+
strictDeps = true;
74+
7175
enableParallelBuilding = true;
7276

7377
doCheck = true;

0 commit comments

Comments
 (0)