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;