2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "unpackerr";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.13.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davidnewhall";
|
|
|
|
repo = "unpackerr";
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-K6ZDRDtxeqtjToElix1qVgclHaEeOY0W6hOwehFNIgo=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
vendorHash = "sha256-1OSZzs/hUvauRIE5lzlXPIS2EkHm4aNK1iddjKCb6zA=";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X golift.io/version.Version=${version}" ];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "unpackerr";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|