nixpkgs/pkgs/servers/monitoring/prometheus/exportarr/default.nix
Azat Bahawi acd6ceaf09
exportarr: switch category
Applied suggestions[1] from @mweinelt and did a small refactor.

[1]: https://github.com/NixOS/nixpkgs/pull/183772#issuecomment-1237014790
2022-09-06 12:18:12 +03:00

38 lines
873 B
Nix

{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "exportarr";
version = "1.1.0";
src = fetchFromGitHub {
owner = "onedr0p";
repo = "exportarr";
rev = "v${version}";
sha256 = "sha256-KTuOhyBFS6fgA9N70vq+5fJIGVsgEZ7Uxls8efqLuII=";
};
vendorSha256 = "sha256-Yox3LAVbTZqsDmk45uSuKgITRz3zE+HTAKxVf9wdtjE=";
subPackages = [ "cmd/exportarr" ];
CGO_ENABLE = 0;
ldflags = [ "-s" "-w" ];
tags = lib.optionals stdenv.isLinux [ "netgo" ];
# There are no tests for this package.
doCheck = false;
meta = with lib; {
description = "AIO Prometheus Exporter for Sonarr, Radarr or Lidarr";
homepage = "https://github.com/onedr0p/exportarr";
changelog = "https://github.com/onedr0p/exportarr/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ azahi ];
};
}