mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
40 lines
998 B
Nix
40 lines
998 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "mongodb_exporter";
|
|
version = "0.40.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "percona";
|
|
repo = "mongodb_exporter";
|
|
rev = "v${version}";
|
|
hash = "sha256-cWXfMi48aF06Prua3n4geG2yP1JzLlHq/xh1HmiJkT4=";
|
|
};
|
|
|
|
vendorHash = "sha256-69YBrDAEruWXaAqLfRVtqmZ0pop3r5cusePSV2Q1MXw=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
"-X main.commit=${src.rev}"
|
|
"-X main.Branch=unknown"
|
|
"-X main.buildDate=unknown"
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
# those check depends on docker;
|
|
# nixpkgs doesn't have mongodb application available;
|
|
doCheck = false;
|
|
|
|
meta = with lib;
|
|
{
|
|
description = "Prometheus exporter for MongoDB including sharding, replication and storage engines";
|
|
homepage = "https://github.com/percona/mongodb_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ undefined-moe ];
|
|
mainProgram = "mongodb_exporter";
|
|
};
|
|
}
|