chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / th / thanos / package.nix
blob4842cb0a7d42679bb44709d429498f188c52105b
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   go,
6   nix-update-script,
7   nixosTests,
8   testers,
9   thanos,
12 buildGoModule rec {
13   pname = "thanos";
14   version = "0.36.1";
16   src = fetchFromGitHub {
17     owner = "thanos-io";
18     repo = "thanos";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-Zcc860kQkVP1DPyadBoalhcvwh5HF9CgQyjzWRdeXt0=";
21   };
23   vendorHash = "sha256-d+jHGmCfx9Ffm5pajm1RvKnMea99JswL0I8nmILXN50=";
25   subPackages = "cmd/thanos";
27   ldflags =
28     let
29       t = "github.com/prometheus/common/version";
30     in
31     [
32       "-X ${t}.Version=${version}"
33       "-X ${t}.Revision=unknown"
34       "-X ${t}.Branch=unknown"
35       "-X ${t}.BuildUser=nix@nixpkgs"
36       "-X ${t}.BuildDate=unknown"
37       "-X ${t}.GoVersion=${lib.getVersion go}"
38     ];
40   doCheck = true;
42   passthru = {
43     updateScript = nix-update-script { };
44     tests = {
45       inherit (nixosTests) thanos;
46       version = testers.testVersion {
47         command = "thanos --version";
48         package = thanos;
49       };
50     };
51   };
53   meta = with lib; {
54     description = "Highly available Prometheus setup with long term storage capabilities";
55     homepage = "https://github.com/thanos-io/thanos";
56     changelog = "https://github.com/thanos-io/thanos/releases/tag/v${version}";
57     license = licenses.asl20;
58     mainProgram = "thanos";
59     maintainers = with maintainers; [
60       basvandijk
61       anthonyroussel
62     ];
63   };