nixpkgs/pkgs/servers/unpackerr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
785 B
Nix
Raw Normal View History

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";
2023-01-19 02:27:47 +01:00
version = "0.11.1";
2021-05-13 13:16:40 +02:00
src = fetchFromGitHub {
owner = "davidnewhall";
repo = "unpackerr";
rev = "v${version}";
2023-01-19 02:27:47 +01:00
sha256 = "sha256-qoaJYCJoN8RcOM7Bk2zwNYqnKXB/GAlt29VZjY/MchU=";
2021-05-13 13:16:40 +02:00
};
2023-01-19 02:27:47 +01:00
vendorHash = "sha256-ArWeVNFHM37bmFFLNzqpXKmK9/DUi7+ZsRHpuLNfL0A=";
2021-05-13 13:16:40 +02:00
2021-05-18 09:07:09 +02:00
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
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;
};
}