nixpkgs/pkgs/servers/monitoring/prometheus/sql-exporter.nix

24 lines
577 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2020-08-03 16:48:19 +02:00
buildGoModule rec {
pname = "sql_exporter";
2021-01-20 20:45:54 +01:00
version = "0.4.0";
2020-08-03 16:48:19 +02:00
vendorSha256 = null;
src = fetchFromGitHub {
owner = "justwatchcom";
2021-01-20 20:45:54 +01:00
repo = pname;
2020-08-03 16:48:19 +02:00
rev = "v${version}";
2021-01-20 20:45:54 +01:00
sha256 = "0dxzcd3b430xby741fdc85k4d2380jrh34xxskmdzxbf2kqdc5k8";
2020-08-03 16:48:19 +02:00
};
meta = with lib; {
2020-08-03 16:48:19 +02:00
description = "Flexible SQL exporter for Prometheus";
homepage = "https://github.com/justwatchcom/sql_exporter";
license = licenses.mit;
maintainers = with maintainers; [ justinas ];
platforms = platforms.unix;
};
}