Merge pull request #183772 from azahi/exportarr
This commit is contained in:
commit
91969a324a
38
pkgs/servers/monitoring/exportarr/default.nix
Normal file
38
pkgs/servers/monitoring/exportarr/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "exportarr";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "onedr0p";
|
||||
repo = "exportarr";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-KTuOhyBFS6fgA9N70vq+5fJIGVsgEZ7Uxls8efqLuII=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-Yox3LAVbTZqsDmk45uSuKgITRz3zE+HTAKxVf9wdtjE=";
|
||||
|
||||
subPackages = [ "cmd/exportarr" ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
"-extldflags=-static"
|
||||
];
|
||||
|
||||
tags = lib.optionals stdenv.isLinux [ "netgo" ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -6012,6 +6012,8 @@ with pkgs;
|
||||
|
||||
expect = callPackage ../tools/misc/expect { };
|
||||
|
||||
exportarr = callPackage ../servers/monitoring/exportarr { };
|
||||
|
||||
expliot = callPackage ../tools/security/expliot { };
|
||||
|
||||
f2fs-tools = callPackage ../tools/filesystems/f2fs-tools { };
|
||||
|
Loading…
Reference in New Issue
Block a user