Skip to content

Commit

Permalink
lhapdf: fix and enable strictDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Dec 19, 2024
1 parent eabe378 commit 0852807
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/libraries/physics/lhapdf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
bash,
python,
makeWrapper,
}:
Expand All @@ -22,7 +23,10 @@ stdenv.mkDerivation rec {
'';

nativeBuildInputs =
[ makeWrapper ]
[
bash
makeWrapper
]
++ lib.optionals (python != null && lib.versionAtLeast python.version "3.10") [
python.pkgs.cython
];
Expand All @@ -34,13 +38,16 @@ stdenv.mkDerivation rec {
rm wrappers/python/lhapdf.cpp
'';

strictDeps = true;

enableParallelBuilding = true;

passthru = {
pdf_sets = import ./pdf_sets.nix { inherit lib stdenv fetchurl; };
};

postInstall = ''
patchShebangs --build $out/bin/lhapdf-config
wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")"
'';

Expand Down

0 comments on commit 0852807

Please sign in to comment.