diff --git a/pkgs/by-name/fl/flye/package.nix b/pkgs/by-name/fl/flye/package.nix index 443c66488e23..1f7bde7a2aa5 100644 --- a/pkgs/by-name/fl/flye/package.nix +++ b/pkgs/by-name/fl/flye/package.nix @@ -8,6 +8,7 @@ libdeflate, bash, coreutils, + addBinToPathHook, }: python3Packages.buildPythonApplication rec { @@ -54,11 +55,10 @@ python3Packages.buildPythonApplication rec { pythonImportsCheck = [ "flye" ]; - nativeCheckInputs = [ python3Packages.pytestCheckHook ]; - - preCheck = '' - export PATH=$out/bin:$PATH - ''; + nativeCheckInputs = [ + addBinToPathHook + python3Packages.pytestCheckHook + ]; meta = with lib; { description = "De novo assembler for single molecule sequencing reads using repeat graphs";