From 6f037e51aaa47a3d4d54d4739965fea76bd5405f Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Sun, 26 Mar 2023 01:10:13 +0100 Subject: [PATCH] pynitrokey: support more devices via libnitrokey libnitrokey is needed to support e.g. Nitrokey Pro devices. --- pkgs/tools/security/pynitrokey/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/pynitrokey/default.nix b/pkgs/tools/security/pynitrokey/default.nix index 3b143f0f3ff3..9c3eec9e9f3f 100644 --- a/pkgs/tools/security/pynitrokey/default.nix +++ b/pkgs/tools/security/pynitrokey/default.nix @@ -1,4 +1,4 @@ -{ python3Packages, lib, nrfutil }: +{ python3Packages, lib, nrfutil, libnitrokey }: with python3Packages; @@ -44,6 +44,12 @@ buildPythonApplication rec { "typing_extensions" ]; + # libnitrokey is not propagated to users of pynitrokey + # It is only usable from the wrapped bin/nitropy + makeWrapperArgs = [ + "--set LIBNK_PATH ${lib.makeLibraryPath [ libnitrokey ]}" + ]; + # no tests doCheck = false;