914e0e594c
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541 * update docs to describe `deps.nix` * include goDeps in nix-shell GOPATH * NixOS 16.09 rel notes about replacing goPackages
25 lines
800 B
Nix
25 lines
800 B
Nix
{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
|
|
|
buildGoPackage rec {
|
|
name = "nginx_exporter-${version}";
|
|
version = "20160524-${stdenv.lib.strings.substring 0 7 rev}";
|
|
rev = "2cf16441591f6b6e58a8c0439dcaf344057aea2b";
|
|
|
|
goPackagePath = "github.com/discordianfish/nginx_exporter";
|
|
|
|
src = fetchgit {
|
|
inherit rev;
|
|
url = "https://github.com/discordianfish/nginx_exporter";
|
|
sha256 = "0p9j0bbr2lr734980x2p8d67lcify21glwc5k3i3j4ri4vadpxvc";
|
|
};
|
|
|
|
goDeps = ./nginx-exporter_deps.nix;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Metrics relay from nginx stats to Prometheus";
|
|
homepage = https://github.com/discordianfish/nginx_exporter;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benley ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|