Unverified Commit 9288bc4f authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

prometheus: 3.7.2 -> 3.8.0 (#468042)

parents 24ba37f5 f97638b9
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

buildGoModule (finalAttrs: {
  pname = "prometheus";
  version = "3.7.2";
  version = "3.8.0";

  outputs = [
    "out"
@@ -45,14 +45,14 @@ buildGoModule (finalAttrs: {
    owner = "prometheus";
    repo = "prometheus";
    tag = "v${finalAttrs.version}";
    hash = "sha256-bitRDX1oymFfzvQVYL31BON6UBfQYnqjZefQKc+yXx0=";
    hash = "sha256-hRuZxwPPDLxQvy5MPKEyfmanNabcSjLRO+XbNKugPtk=";
  };

  vendorHash = "sha256-V+qLxjqGOaT1veEwtklqcS7iO31ufvDHBA9DbZLzDiE=";
  vendorHash = "sha256-5wDaG01vcTtGzrS/S33U5XWXoSWM+N9z3dzXZlILxD8=";

  webUiStatic = fetchurl {
    url = "https://github.com/prometheus/prometheus/releases/download/v${finalAttrs.version}/prometheus-web-ui-${finalAttrs.version}.tar.gz";
    hash = "sha256-NFv6zNpMacd0RgVYBlWKbXKNCEh7WijpREg0bNojisM=";
    hash = "sha256-oOEvNZFlYtTNBsn+B2pAWXi0A2oJ6IAo7V8bOLtjfCM=";
  };

  excludedPackages = [
@@ -107,7 +107,6 @@ buildGoModule (finalAttrs: {
    in
    [
      "-s"
      "-w"
      "-X ${t}.Version=${finalAttrs.version}"
      "-X ${t}.Revision=unknown"
      "-X ${t}.Branch=unknown"
@@ -129,19 +128,24 @@ buildGoModule (finalAttrs: {
  # Test mock data uses 64 bit data without an explicit (u)int64
  doCheck = !(stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.parsed.cpu.bits < 64);

  checkFlags = lib.optionals stdenv.hostPlatform.isAarch64 [
  checkFlags = [
    # Skip for issue during TSDB compaction
    "-skip=TestBlockRanges"
  ]
  ++ lib.optionals stdenv.hostPlatform.isAarch64 [
    "-skip=TestEvaluations/testdata/aggregators.test"
  ];

  passthru.tests = { inherit (nixosTests) prometheus; };

  meta = with lib; {
  meta = {
    description = "Service monitoring system and time series database";
    homepage = "https://prometheus.io";
    license = licenses.asl20;
    maintainers = with maintainers; [
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      fpletz
      Frostman
    ];
    mainProgram = "prometheus";
  };
})