exportarr: switch category

Applied suggestions[1] from @mweinelt and did a small refactor.

[1]: https://github.com/NixOS/nixpkgs/pull/183772#issuecomment-1237014790
This commit is contained in:
Azat Bahawi 2022-09-06 12:18:12 +03:00
parent aa192bd897
commit acd6ceaf09
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B
2 changed files with 8 additions and 8 deletions

View file

@ -12,22 +12,22 @@ buildGoModule rec {
owner = "onedr0p";
repo = "exportarr";
rev = "v${version}";
hash = "sha256-KTuOhyBFS6fgA9N70vq+5fJIGVsgEZ7Uxls8efqLuII=";
sha256 = "sha256-KTuOhyBFS6fgA9N70vq+5fJIGVsgEZ7Uxls8efqLuII=";
};
vendorSha256 = "sha256-Yox3LAVbTZqsDmk45uSuKgITRz3zE+HTAKxVf9wdtjE=";
subPackages = [ "cmd/exportarr" ];
ldflags = [
"-s"
"-w"
] ++ lib.optionals stdenv.isLinux [
"-extldflags=-static"
];
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";

View file

@ -6178,7 +6178,7 @@ with pkgs;
expect = callPackage ../tools/misc/expect { };
exportarr = callPackage ../servers/monitoring/exportarr { };
exportarr = callPackage ../servers/monitoring/prometheus/exportarr { };
expliot = callPackage ../tools/security/expliot { };