From 0852807b55d110308b16a20def524eda421148c3 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 19 Dec 2024 07:22:38 +0100 Subject: [PATCH] lhapdf: fix and enable strictDeps --- pkgs/development/libraries/physics/lhapdf/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/physics/lhapdf/default.nix b/pkgs/development/libraries/physics/lhapdf/default.nix index bb2bc4e8a72e8..a8d1e5ddded26 100644 --- a/pkgs/development/libraries/physics/lhapdf/default.nix +++ b/pkgs/development/libraries/physics/lhapdf/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + bash, python, makeWrapper, }: @@ -22,7 +23,10 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = - [ makeWrapper ] + [ + bash + makeWrapper + ] ++ lib.optionals (python != null && lib.versionAtLeast python.version "3.10") [ python.pkgs.cython ]; @@ -34,6 +38,8 @@ stdenv.mkDerivation rec { rm wrappers/python/lhapdf.cpp ''; + strictDeps = true; + enableParallelBuilding = true; passthru = { @@ -41,6 +47,7 @@ stdenv.mkDerivation rec { }; postInstall = '' + patchShebangs --build $out/bin/lhapdf-config wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")" '';