prometheus-cli: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-05 14:05:27 +02:00
parent a6cd1321b9
commit 2665cae1f4
4 changed files with 37 additions and 21 deletions

View File

@ -0,0 +1,28 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
buildGoPackage rec {
name = "prometheus_cli-${version}";
version = "0.3.0";
rev = version;
goPackagePath = "github.com/prometheus/prometheus_cli";
src = fetchgit {
inherit rev;
url = "https://github.com/prometheus/prometheus_cli";
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;
};
}

View File

@ -0,0 +1,8 @@
[
{
"include": "../../libs.json",
"packages": [
"github.com/prometheus/client_golang"
]
}
]

View File

@ -10180,7 +10180,7 @@ in
prom2json = callPackage ../servers/monitoring/prometheus/prom2json.nix { };
prometheus = callPackage ../servers/monitoring/prometheus { };
prometheus-alertmanager = callPackage ../servers/monitoring/prometheus/alertmanager.nix { };
prometheus-cli = goPackages.prometheus.cli.bin // { outputs = [ "bin" ]; };
prometheus-cli = callPackage ../servers/monitoring/prometheus/cli.nix { };
prometheus-collectd-exporter = goPackages.prometheus.collectd-exporter.bin // { outputs = [ "bin" ]; };
prometheus-haproxy-exporter = goPackages.prometheus.haproxy-exporter.bin // { outputs = [ "bin" ]; };
prometheus-mesos-exporter = goPackages.prometheus.mesos-exporter.bin // { outputs = [ "bin" ]; };

View File

@ -2579,26 +2579,6 @@ let
];
};
prometheus.cli = buildFromGitHub {
rev = "0.3.0";
owner = "prometheus";
repo = "prometheus_cli";
sha256 = "1qxqrcbd0d4mrjrgqz882jh7069nn5gz1b84rq7d7z1f1dqhczxn";
buildInputs = [
prometheus.client_model
prometheus.client_golang
];
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;
};
};
prometheus.client_model = buildFromGitHub {
rev = "fa8ad6fec33561be4280a8f0514318c79d7f6cb6";
version = "2015-02-12";