15 src = fetchFromGitHub {
18 rev = "refs/tags/v${version}";
19 hash = "sha256-AynKxORgO8fY8KAhzyIeHCw2MI2se5eHSPn0kt1RJq4=";
22 vendorHash = "sha256-4IT3YeGXSEzC0z+rC2yQCY9QQZeXxpMtJM/4/kINn3s=";
26 subPackages = "cmd/thanos";
28 ldflags = let t = "github.com/prometheus/common/version"; in [
29 "-X ${t}.Version=${version}"
30 "-X ${t}.Revision=unknown"
31 "-X ${t}.Branch=unknown"
32 "-X ${t}.BuildUser=nix@nixpkgs"
33 "-X ${t}.BuildDate=unknown"
34 "-X ${t}.GoVersion=${lib.getVersion go}"
38 updateScript = nix-update-script { };
40 inherit (nixosTests) prometheus;
41 version = testers.testVersion {
42 command = "thanos --version";
49 description = "Highly available Prometheus setup with long term storage capabilities";
50 homepage = "https://github.com/thanos-io/thanos";
51 changelog = "https://github.com/thanos-io/thanos/releases/tag/v${version}";
52 license = licenses.asl20;
53 mainProgram = "thanos";
54 maintainers = with maintainers; [ basvandijk anthonyroussel ];