diff --git a/pkgs/tools/filesystems/garage/default.nix b/pkgs/tools/filesystems/garage/default.nix index 393fdd0cedcb..cfa35fd8cdce 100644 --- a/pkgs/tools/filesystems/garage/default.nix +++ b/pkgs/tools/filesystems/garage/default.nix @@ -6,6 +6,7 @@ pkg-config, protobuf, cacert, + nix-update-script, nixosTests, }: let @@ -47,7 +48,7 @@ let env.OPENSSL_NO_VENDOR = true; - # See https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/v2.1.0/nix/compile.nix#L71-L78 + # See https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/v2.2.0/nix/compile.nix#L71-L78 # on version changes for checking if changes are required here buildFeatures = [ "bundled-libs" @@ -63,7 +64,15 @@ let "telemetry-otlp" ]; - passthru.tests = nixosTests."garage_${lib.versions.major version}"; + passthru = { + tests = nixosTests."garage_${lib.versions.major version}"; + updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "v(${lib.versions.major version}\\.[0-9.]+)" + ]; + }; + }; meta = { description = "S3-compatible object store for small self-hosted geo-distributed deployments"; @@ -84,15 +93,15 @@ let in rec { garage_1 = generic { - version = "1.3.0"; - hash = "sha256-6w+jun0UmQHmoXcokGpPM95BbQyOKefTeAelAFKxNCM="; - cargoHash = "sha256-mWLsOTWxzMdDfzEDu+WHJ12SVscEVfBVuOTVFbfnk0g="; + version = "1.3.1"; + hash = "sha256-wkCnJmbulnhzwHvzdpzh9MRceOzmPdhOogffwhqNGPg="; + cargoHash = "sha256-jfYe2A6zkVgTLrWBDbahICSKCRO3FwsBPNSVFapH0Rs="; }; garage_2 = generic { - version = "2.1.0"; - hash = "sha256-GGwF6kVIJ7MPvO6VRj2ebquJEjJQBwpW18P6L2sGVDs="; - cargoHash = "sha256-0pT2fqseN1numJZdC0FFg1JXbDq1YmlmBPQVbOpxtkw="; + version = "2.2.0"; + hash = "sha256-UaWHZPV0/Jgeiwvvr9V9Gqthn5KXErLx8gL4JdBRDVs="; + cargoHash = "sha256-U6Wipvlw3XdKUBNZMznENJ9m+9fzP9Nb6217+Kytu7s="; }; garage = garage_1;