about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Benes <nbenes.gh@xandea.de>2023-06-12 12:32:32 +0200
committerNicolas Benes <nbenes.gh@xandea.de>2023-06-12 12:32:32 +0200
commit3da8671d44c7cc3cc9e44588ce31b1f20afa3a5e (patch)
tree1a05fb7ab78fd07c83b21da23e3b5eb1b8830af9
parent2423529216312570d302553e74bd0feeb9723f16 (diff)
pynitrokey: add update script
-rw-r--r--pkgs/tools/security/pynitrokey/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/security/pynitrokey/default.nix b/pkgs/tools/security/pynitrokey/default.nix
index 04b4b8e7b85ff..fe51760f5629e 100644
--- a/pkgs/tools/security/pynitrokey/default.nix
+++ b/pkgs/tools/security/pynitrokey/default.nix
@@ -1,4 +1,10 @@
-{ lib, python3Packages, fetchPypi, nrfutil, libnitrokey }:
+{ lib
+, python3Packages
+, fetchPypi
+, nrfutil
+, libnitrokey
+, nix-update-script
+}:
 
 with python3Packages;
 
@@ -45,7 +51,7 @@ buildPythonApplication rec {
     "typing_extensions"
   ];
 
-  # libnitrokey is not propagated to users of pynitrokey
+  # libnitrokey is not propagated to users of the pynitrokey Python package.
   # It is only usable from the wrapped bin/nitropy
   makeWrapperArgs = [
     "--set LIBNK_PATH ${lib.makeLibraryPath [ libnitrokey ]}"
@@ -56,6 +62,8 @@ buildPythonApplication rec {
 
   pythonImportsCheck = [ "pynitrokey" ];
 
+  passthru.updateScript = nix-update-script { };
+
   meta = with lib; {
     description = "Python client for Nitrokey devices";
     homepage = "https://github.com/Nitrokey/pynitrokey";