mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
28 lines
686 B
Nix
28 lines
686 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "prometheus-nats-exporter";
|
|
version = "0.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nats-io";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-v8Afdz1X1s5P/soXB+9M4C01HbvPNlEXo7Hdf1o9NdM=";
|
|
};
|
|
|
|
vendorHash = "sha256-YpiwRkujjuqfNH1Mmv6mtm6nNXx6kp272+6fzsK97xw=";
|
|
|
|
preCheck = ''
|
|
# Fix `insecure algorithm SHA1-RSA` problem
|
|
export GODEBUG=x509sha1=1;
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Exporter for NATS metrics";
|
|
homepage = "https://github.com/nats-io/prometheus-nats-exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ bbigras ];
|
|
};
|
|
}
|