2016-06-06 10:26:56 +00:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 12:05:27 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "prometheus_cli-${version}";
|
|
|
|
version = "0.3.0";
|
|
|
|
rev = version;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/prometheus_cli";
|
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 12:05:27 +00:00
|
|
|
inherit rev;
|
2016-06-06 10:26:56 +00:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "prometheus_cli";
|
2016-06-05 12:05:27 +00:00
|
|
|
sha256 = "1qxqrcbd0d4mrjrgqz882jh7069nn5gz1b84rq7d7z1f1dqhczxn";
|
|
|
|
};
|
|
|
|
|
2016-09-10 10:04:13 +00:00
|
|
|
goDeps = ./cli_deps.nix;
|
2016-06-05 12:05:27 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command line tool for querying the Prometheus HTTP API";
|
|
|
|
homepage = https://github.com/prometheus/prometheus_cli;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|