File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed
by-name/fa/fastnlo-toolkit
development/libraries/physics Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments