Merge pull request #183772 from azahi/exportarr

This commit is contained in:
Winter 2022-07-29 15:55:57 -04:00 committed by GitHub
commit 91969a324a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View 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 ];
};
}

View file

@ -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 { };