From 2964352875f76ece5ec973b89812e0d549797177 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 3 Feb 2025 22:18:21 +0100 Subject: [PATCH] multiqc: use `addBinToPathHook` --- pkgs/by-name/mu/multiqc/package.nix | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/mu/multiqc/package.nix b/pkgs/by-name/mu/multiqc/package.nix index be3f8ad6ea86..6d49ccda1d43 100644 --- a/pkgs/by-name/mu/multiqc/package.nix +++ b/pkgs/by-name/mu/multiqc/package.nix @@ -5,6 +5,7 @@ procps, stdenv, versionCheckHook, + addBinToPathHook, }: python3Packages.buildPythonApplication rec { @@ -77,19 +78,23 @@ python3Packages.buildPythonApplication rec { preCheck = '' chmod -R u+w ../test-data ln -s ../test-data . - export PATH=$out/bin:$PATH ''; # Some tests run subprocess.run() with "ps" - nativeCheckInputs = with python3Packages; [ - procps - pytest-cov - pytest-xdist - pytestCheckHook - syrupy - pygithub - versionCheckHook - ]; + nativeCheckInputs = + with python3Packages; + [ + procps + pytest-cov + pytest-xdist + pytestCheckHook + syrupy + pygithub + versionCheckHook + ] + ++ [ + addBinToPathHook + ]; versionCheckProgramArg = [ "--version" ];