1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

exportarr: init at 1.1.0

This commit is contained in:
Azat Bahawi 2022-07-29 22:22:24 +03:00
parent b975a376b3
commit d9e557dc3f
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B
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 { };