prometheus-mesos-exporter: fold into go-packages.nix

This commit is contained in:
Benjamin Staffin
2015-08-29 23:47:13 -07:00
parent 9001ad4106
commit 52dd6ea9d9
3 changed files with 16 additions and 32 deletions
@@ -1,30 +0,0 @@
{ lib, goPackages, fetchFromGitHub }:
let self = goPackages.buildGoPackage rec {
name = "prometheus-mesos-exporter-${rev}";
rev = "0.1.0";
goPackagePath = "github.com/prometheus/mesos_exporter";
src = fetchFromGitHub {
inherit rev;
owner = "prometheus";
repo = "mesos_exporter";
sha256 = "059az73j717gd960g4jigrxnvqrjh9jw1c324xpwaafa0bf10llm";
};
buildInputs = [
goPackages.mesos-stats
goPackages.prometheus.client_golang
goPackages.glog
];
meta = with lib; {
description = "Export Mesos metrics to Prometheus";
homepage = https://github.com/prometheus/mesos_exporter;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
};
in self.bin