prometheus-pushgateway: extracted from goPackages
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# This file was generated by go2nix.
|
||||
{ stdenv, lib, goPackages, go-bindata, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
|
||||
with goPackages;
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "pushgateway-${version}";
|
||||
version = "0.1.1";
|
||||
rev = version;
|
||||
|
||||
goPackagePath = "github.com/prometheus/pushgateway";
|
||||
|
||||
src = fetchgit {
|
||||
inherit rev;
|
||||
url = "https://github.com/prometheus/pushgateway";
|
||||
sha256 = "17q5z9msip46wh3vxcsq9lvvhbxg75akjjcr2b29zrky8bp2m230";
|
||||
};
|
||||
|
||||
goDeps = ./pushgateway_deps.json;
|
||||
|
||||
buildInputs = [ go-bindata ];
|
||||
|
||||
preBuild = ''
|
||||
(
|
||||
cd "go/src/$goPackagePath"
|
||||
go-bindata ./resources/
|
||||
)
|
||||
'';
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X main.buildVersion=${version}
|
||||
-X main.buildRev=${rev}
|
||||
-X main.buildBranch=master
|
||||
-X main.buildUser=nix@nixpkgs
|
||||
-X main.buildDate=20150101-00:00:00
|
||||
-X main.goVersion=${stdenv.lib.getVersion go}
|
||||
'';
|
||||
|
||||
meta = with stdenv.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;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
[
|
||||
{
|
||||
"include": "../../libs.json",
|
||||
"packages": [
|
||||
"github.com/julienschmidt/httprouter",
|
||||
"github.com/prometheus/client_golang",
|
||||
"github.com/prometheus/client_model",
|
||||
"bitbucket.org/ww/goautoneg",
|
||||
"github.com/golang/protobuf",
|
||||
"github.com/matttproud/golang_protobuf_extensions",
|
||||
"github.com/prometheus/procfs",
|
||||
"github.com/beorn7/perks"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user