2021-05-18 09:07:09 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:
|
2021-05-13 13:16:40 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "unpackerr";
|
2022-05-09 11:57:52 +02:00
|
|
|
version = "0.10.0";
|
2021-05-13 13:16:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davidnewhall";
|
|
|
|
repo = "unpackerr";
|
|
|
|
rev = "v${version}";
|
2022-05-09 11:57:52 +02:00
|
|
|
sha256 = "sha256-o+dE3SX+Q+nhxUO4biEluLEeQhsZgzjXdWTdQcw/H2o=";
|
2021-05-13 13:16:40 +02:00
|
|
|
};
|
|
|
|
|
2022-05-09 11:57:52 +02:00
|
|
|
vendorSha256 = "sha256-vo5Saq0QEEKi3/0ZXuQDtlMmEIPwshYHHr8h24cD0sI=";
|
2021-05-13 13:16:40 +02:00
|
|
|
|
2021-05-18 09:07:09 +02:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
|
|
|
|
|
2022-02-05 19:03:11 +01:00
|
|
|
ldflags = [ "-s" "-w" "-X golift.io/version.Version=${version}" ];
|
|
|
|
|
2021-05-13 13:16:40 +02: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;
|
|
|
|
};
|
|
|
|
}
|