2016-06-06 12:26:56 +02:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:05:27 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "prometheus_cli-${version}";
|
|
|
|
version = "0.3.0";
|
|
|
|
rev = version;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/prometheus_cli";
|
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 14:05:27 +02:00
|
|
|
inherit rev;
|
2016-06-06 12:26:56 +02:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "prometheus_cli";
|
2016-06-05 14:05:27 +02:00
|
|
|
sha256 = "1qxqrcbd0d4mrjrgqz882jh7069nn5gz1b84rq7d7z1f1dqhczxn";
|
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./cli_deps.json;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|