From d9e557dc3f7085864f967762b26ad5627e00a5a2 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Fri, 29 Jul 2022 22:22:24 +0300 Subject: [PATCH] exportarr: init at 1.1.0 --- pkgs/servers/monitoring/exportarr/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/servers/monitoring/exportarr/default.nix diff --git a/pkgs/servers/monitoring/exportarr/default.nix b/pkgs/servers/monitoring/exportarr/default.nix new file mode 100644 index 000000000000..911708a53c0c --- /dev/null +++ b/pkgs/servers/monitoring/exportarr/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a978d6810c52..d1dca4c82066 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };