barman: add update script

This commit is contained in:
Sizhe Zhao
2025-06-22 14:09:25 +08:00
parent 0d76ae1c62
commit 7fe12ac61b
+10
View File
@@ -4,6 +4,7 @@
fetchFromGitHub,
python3Packages,
versionCheckHook,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
@@ -59,6 +60,15 @@ python3Packages.buildPythonApplication rec {
"test_get_file_mode"
];
passthru = {
updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^release/(\\d+\\.\\d+\\.\\d+)$"
];
};
};
meta = {
description = "Backup and Recovery Manager for PostgreSQL";
homepage = "https://www.pgbarman.org/";