From f0ad956733c49080da0d1ad33198aab6f0842c49 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 3 Feb 2025 22:17:58 +0100 Subject: [PATCH] gemmi: use `addBinToPathHook` --- pkgs/by-name/ge/gemmi/package.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/ge/gemmi/package.nix b/pkgs/by-name/ge/gemmi/package.nix index 4082147ec513..17e4cebd94eb 100644 --- a/pkgs/by-name/ge/gemmi/package.nix +++ b/pkgs/by-name/ge/gemmi/package.nix @@ -5,6 +5,7 @@ cmake, zlib, enablePython ? true, + addBinToPathHook, python3Packages, testers, }: @@ -44,15 +45,16 @@ stdenv.mkDerivation (finalAttrs: { doInstallCheck = enablePython; - nativeInstallCheckInputs = with python3Packages; [ - # biopython - numpy - pytestCheckHook - ]; - - preInstallCheck = '' - export PATH=$out/bin:$PATH - ''; + nativeInstallCheckInputs = + with python3Packages; + [ + # biopython + numpy + pytestCheckHook + ] + ++ [ + addBinToPathHook + ]; pytestFlagsArray = [ "../tests" ];