From e4d2291c0e5d781de277e578bbb7c051ef0c3eba Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Mon, 15 Apr 2024 16:51:17 +0200 Subject: [PATCH] yubico-piv-tool: move check to nativeCheckInputs --- pkgs/tools/misc/yubico-piv-tool/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/yubico-piv-tool/default.nix b/pkgs/tools/misc/yubico-piv-tool/default.nix index 01f1e969891f..2901fe331894 100644 --- a/pkgs/tools/misc/yubico-piv-tool/default.nix +++ b/pkgs/tools/misc/yubico-piv-tool/default.nix @@ -41,7 +41,6 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ openssl - check zlib.dev ] ++ (if withApplePCSC then [ PCSC ] else [ pcsclite ]); @@ -56,6 +55,10 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--with-backend=${if withApplePCSC then "macscard" else "pcsc"}" ]; + doCheck = true; + + nativeCheckInputs = [ check ]; + passthru = { updateScript = nix-update-script { extraArgs = [ "--version-regex" "yubico-piv-tool-([0-9.]+)$" ];