safecloset: add nix-update-script

This commit is contained in:
Petr Portnov
2026-03-06 17:51:48 +03:00
parent 16da54ddd3
commit 7d7daff260
+9 -2
View File
@@ -4,6 +4,8 @@
fetchFromGitHub,
stdenv,
libxcb,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -13,7 +15,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
src = fetchFromGitHub {
owner = "Canop";
repo = "safecloset";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-ZLAgSD03Qfoz+uGjVJF7vCkV1pUWqw6yG/9+redbQQ8=";
};
@@ -28,10 +30,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
"--skip=timer::timer_tests::test_timer_reset"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Cross-platform secure TUI secret locker";
homepage = "https://github.com/Canop/safecloset";
changelog = "https://github.com/Canop/safecloset/blob/${finalAttrs.src.rev}/CHANGELOG.md";
changelog = "https://github.com/Canop/safecloset/releases/tag/v${finalAttrs.version}";
license = lib.licenses.agpl3Only;
maintainers = [ lib.maintainers.progrm_jarvis ];
mainProgram = "safecloset";