Unverified Commit 6782b59e authored by Adam C. Stephens's avatar Adam C. Stephens
Browse files
parent ae93eeaa
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
@@ -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";
@@ -90,9 +99,9 @@ rec {
  };

  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;