Unverified Commit f979ac56 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

borgbackup: add constrained updateScript (#464854)

parents 65e279c9 992b82de
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
  zstd,
  installShellFiles,
  nixosTests,
  nix-update-script,
}:

let
@@ -143,6 +144,14 @@ python.pkgs.buildPythonApplication rec {

  disabled = python.pythonOlder "3.9";

  passthru.updateScript = nix-update-script {
    # Only match tags formatted as x.y.z (e.g., 1.2.3)
    extraArgs = [
      "--version-regex"
      "^([0-9]+\\.[0-9]+\\.[0-9]+)$"
    ];
  };

  meta = with lib; {
    changelog = "https://github.com/borgbackup/borg/blob/${src.rev}/docs/changes.rst";
    description = "Deduplicating archiver with compression and encryption";