mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-08 06:43:10 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, nixosTests
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "dovecot_exporter";
|
|
version = "0.1.3-unstable-2019-07-19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kumina";
|
|
repo = "dovecot_exporter";
|
|
rev = "7ef79118ba619ff078594837377189477a4d059f";
|
|
hash = "sha256-qJbIBSfHYgFztuivuNjleDa+Bx0KC4OklCh3IvK2XFI=";
|
|
};
|
|
|
|
vendorHash = "sha256-+B8sROL1h6ElBfAUBT286yJF9m9zoRvMOrf0z2SVCj0=";
|
|
|
|
patches = [
|
|
# Migrate the project to Go modules
|
|
# https://github.com/kumina/dovecot_exporter/pull/23
|
|
(fetchpatch {
|
|
url = "https://github.com/kumina/dovecot_exporter/commit/b5184dd99cf8c79facf20cea281828d302327665.patch";
|
|
hash = "sha256-OcdI1fJ/wumDI/wk5PQVot9+Gw/PnsiwgJY7dcRyEsc=";
|
|
})
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) dovecot; };
|
|
|
|
meta = {
|
|
inherit (src.meta) homepage;
|
|
description = "Prometheus metrics exporter for Dovecot";
|
|
mainProgram = "dovecot_exporter";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ willibutz globin ];
|
|
};
|
|
}
|