1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

prometheus-statsd-bridge: fold into go-packages.nix

This commit is contained in:
Benjamin Staffin 2015-08-30 00:26:10 -07:00
parent d17a29a150
commit 395c268ab7
3 changed files with 16 additions and 32 deletions

View file

@ -1,29 +0,0 @@
{ lib, goPackages, fetchFromGitHub }:
let self = goPackages.buildGoPackage rec {
name = "prometheus-statsd-bridge-${version}";
version = "0.1.0";
goPackagePath = "github.com/prometheus/statsd_bridge";
src = fetchFromGitHub {
rev = version;
owner = "prometheus";
repo = "statsd_bridge";
sha256 = "1fndpmd1k0a3ar6f7zpisijzc60f2dng5399nld1i1cbmd8jybjr";
};
buildInputs = with goPackages; [
fsnotify.v0
prometheus.client_golang
];
meta = with lib; {
description = "Receives StatsD-style metrics and exports them to Prometheus";
homepage = https://github.com/prometheus/statsd_bridge;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
};
in self.bin

View file

@ -9207,9 +9207,7 @@ let
prometheus-nginx-exporter = goPackages.prometheus.nginx-exporter.bin;
prometheus-node-exporter = goPackages.prometheus.node-exporter.bin;
prometheus-pushgateway = goPackages.prometheus.pushgateway.bin;
prometheus-statsd-bridge =
callPackage ../servers/monitoring/prometheus/statsd_bridge { };
prometheus-statsd-bridge = goPackages.prometheus.statsd-bridge.bin;
psqlodbc = callPackage ../servers/sql/postgresql/psqlodbc { };

View file

@ -2268,6 +2268,21 @@ let
};
};
prometheus.statsd-bridge = buildFromGitHub {
rev = "0.1.0";
owner = "prometheus";
repo = "statsd_bridge";
sha256 = "1fndpmd1k0a3ar6f7zpisijzc60f2dng5399nld1i1cbmd8jybjr";
buildInputs = [ fsnotify.v0 prometheus.client_golang ];
meta = with stdenv.lib; {
description = "Receives StatsD-style metrics and exports them to Prometheus";
homepage = https://github.com/prometheus/statsd_bridge;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
};
pty = buildFromGitHub {
rev = "67e2db24c831afa6c64fc17b4a143390674365ef";
owner = "kr";