nixpkgs/pkgs/servers/monitoring/prometheus/pushgateway/default.nix
Benjamin Staffin b2de6ccc8e Update prometheus and its various helper packages
Updates to:

 - prometheus
 - prometheus-alertmanager
 - prometheus-cli
 - prometheus-mesos-exporter
 - prometheus-node-exporter
 - prometheus-pushgateway
 - prometheus-statsd-bridge
2015-05-23 17:34:43 -07:00

50 lines
1.1 KiB
Nix

{ stdenv, lib, goPackages, fetchFromGitHub }:
with goPackages;
buildGoPackage rec {
name = "prometheus-pushgateway-${rev}";
rev = "0.1.1";
goPackagePath = "github.com/prometheus/pushgateway";
src = fetchFromGitHub {
inherit rev;
owner = "prometheus";
repo = "pushgateway";
sha256 = "17q5z9msip46wh3vxcsq9lvvhbxg75akjjcr2b29zrky8bp2m230";
};
buildInputs = [
go-bindata
protobuf
httprouter
golang_protobuf_extensions
prometheus.client_golang
];
buildFlagsArray = ''
-ldflags=
-X main.buildVersion ${rev}
-X main.buildRev ${rev}
-X main.buildBranch master
-X main.buildUser nix@nixpkgs
-X main.buildDate 20150101-00:00:00
-X main.goVersion ${lib.getVersion go}
'';
preBuild = ''
(
cd "go/src/$goPackagePath"
go-bindata ./resources/
)
'';
meta = with lib; {
description =
"Allows ephemeral and batch jobs to expose metrics to Prometheus";
homepage = https://github.com/prometheus/pushgateway;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}