Skip to content

Commit d3a91c2

Browse files
authored
{yoda,lhapdf,fastnlo-toolkit}: fix and enable strictDeps (#366449)
2 parents 7db241f + 5b93a4e commit d3a91c2

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
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;

pkgs/development/libraries/physics/lhapdf/default.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchurl,
5+
bash,
56
python,
67
makeWrapper,
78
}:
@@ -22,7 +23,10 @@ stdenv.mkDerivation rec {
2223
'';
2324

2425
nativeBuildInputs =
25-
[ makeWrapper ]
26+
[
27+
bash
28+
makeWrapper
29+
]
2630
++ lib.optionals (python != null && lib.versionAtLeast python.version "3.10") [
2731
python.pkgs.cython
2832
];
@@ -34,13 +38,16 @@ stdenv.mkDerivation rec {
3438
rm wrappers/python/lhapdf.cpp
3539
'';
3640

41+
strictDeps = true;
42+
3743
enableParallelBuilding = true;
3844

3945
passthru = {
4046
pdf_sets = import ./pdf_sets.nix { inherit lib stdenv fetchurl; };
4147
};
4248

4349
postInstall = ''
50+
patchShebangs --build $out/bin/lhapdf-config
4451
wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")"
4552
'';
4653

pkgs/development/libraries/physics/yoda/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
stdenv,
44
fetchFromGitLab,
55
autoreconfHook,
6+
bash,
67
python,
78
root,
89
makeWrapper,
@@ -23,6 +24,7 @@ stdenv.mkDerivation rec {
2324

2425
nativeBuildInputs = with python.pkgs; [
2526
autoreconfHook
27+
bash
2628
cython
2729
makeWrapper
2830
];
@@ -43,6 +45,8 @@ stdenv.mkDerivation rec {
4345
zlib
4446
];
4547

48+
strictDeps = true;
49+
4650
enableParallelBuilding = true;
4751

4852
postPatch = ''
@@ -54,6 +58,7 @@ stdenv.mkDerivation rec {
5458
'';
5559

5660
postInstall = ''
61+
patchShebangs --build $out/bin/yoda-config
5762
for prog in "$out"/bin/*; do
5863
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
5964
done

0 commit comments

Comments
 (0)