mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
24 lines
628 B
Nix
24 lines
628 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "consul_exporter";
|
|
version = "0.3.0";
|
|
|
|
goPackagePath = "github.com/prometheus/consul_exporter";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "consul_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "1zffbxyfmqpbdqkx5rb5vjgd9j4p4zcrh6jvn1zhbdzrcs7khnd9";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Prometheus exporter for Consul metrics";
|
|
homepage = https://github.com/prometheus/consul_exporter;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ hectorj ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|