3
0
Fork 0
forked from mirrors/nixpkgs

prometheus-cli: fold into go-packages.nix

This commit is contained in:
Benjamin Staffin 2015-08-29 23:17:13 -07:00
parent 87655d9fe8
commit 853602fae5
3 changed files with 21 additions and 31 deletions

View file

@ -1,29 +0,0 @@
{ stdenv, lib, goPackages, fetchFromGitHub }:
let self = goPackages.buildGoPackage rec {
name = "prometheus-cli-${rev}";
rev = "0.3.0";
goPackagePath = "github.com/prometheus/prometheus_cli";
src = fetchFromGitHub {
owner = "prometheus";
repo = "prometheus_cli";
inherit rev;
sha256 = "1qxqrcbd0d4mrjrgqz882jh7069nn5gz1b84rq7d7z1f1dqhczxn";
};
buildInputs = [
goPackages.prometheus.client_model
goPackages.prometheus.client_golang
];
meta = with 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;
};
};
in self.bin

View file

@ -9200,9 +9200,8 @@ let
prometheus = goPackages.prometheus.prometheus.bin; prometheus = goPackages.prometheus.prometheus.bin;
prometheus-alertmanager = goPackages.prometheus.alertmanager.bin; prometheus-alertmanager = goPackages.prometheus.alertmanager.bin;
prometheus-cli = goPackages.prometheus.cli.bin;
prometheus-cli =
callPackage ../servers/monitoring/prometheus/cli { };
prometheus-collectd-exporter = prometheus-collectd-exporter =
callPackage ../servers/monitoring/prometheus/collectd_exporter { }; callPackage ../servers/monitoring/prometheus/collectd_exporter { };
prometheus-haproxy-exporter = prometheus-haproxy-exporter =

View file

@ -2010,6 +2010,26 @@ 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 { prometheus.client_model = buildFromGitHub {
rev = "fa8ad6fec33561be4280a8f0514318c79d7f6cb6"; rev = "fa8ad6fec33561be4280a8f0514318c79d7f6cb6";
date = "2015-02-12"; date = "2015-02-12";