16 src = fetchFromGitHub {
19 rev = "refs/tags/v${version}";
20 hash = "sha256-Zcc860kQkVP1DPyadBoalhcvwh5HF9CgQyjzWRdeXt0=";
23 vendorHash = "sha256-d+jHGmCfx9Ffm5pajm1RvKnMea99JswL0I8nmILXN50=";
25 subPackages = "cmd/thanos";
29 t = "github.com/prometheus/common/version";
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}"
43 updateScript = nix-update-script { };
45 inherit (nixosTests) thanos;
46 version = testers.testVersion {
47 command = "thanos --version";
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; [