nixpkgs-suyu/pkgs/servers/unpackerr/default.nix
2023-08-02 23:10:04 +00:00

26 lines
785 B
Nix

{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:
buildGoModule rec {
pname = "unpackerr";
version = "0.12.0";
src = fetchFromGitHub {
owner = "davidnewhall";
repo = "unpackerr";
rev = "v${version}";
sha256 = "sha256-yMmn733j6k9r8I/lvVOZNL6o35eSPJZ5G8jw9xaJZRg=";
};
vendorHash = "sha256-1VMeRB34JS9EwyGhPxFsRIgKaY6NyIMsa132PQKoPYY=";
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
ldflags = [ "-s" "-w" "-X golift.io/version.Version=${version}" ];
meta = with lib; {
description = "Extracts downloads for Radarr, Sonarr, Lidarr - Deletes extracted files after import";
homepage = "https://github.com/davidnewhall/unpackerr";
maintainers = with maintainers; [ nullx76 ];
license = licenses.mit;
};
}