nixpkgs/pkgs/servers/unpackerr/default.nix

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

28 lines
790 B
Nix
Raw Normal View History

2021-05-18 08:07:09 +01:00
{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:
2021-05-13 12:16:40 +01:00
buildGoModule rec {
pname = "unpackerr";
2024-08-10 16:13:40 +01:00
version = "0.14.5";
2021-05-13 12:16:40 +01:00
src = fetchFromGitHub {
owner = "davidnewhall";
repo = "unpackerr";
rev = "v${version}";
2024-08-10 16:13:40 +01:00
sha256 = "sha256-uQwpdgV6ksouW9JTuiiuQjxBGOE/ypDW769kNJgWrHw=";
2021-05-13 12:16:40 +01:00
};
2024-08-01 03:04:38 +01:00
vendorHash = "sha256-wWIw0gNn5tqRq0udzPy/n2OkiIVESpSotOSn2YlBNS4=";
2021-05-13 12:16:40 +01:00
2021-05-18 08:07:09 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
ldflags = [ "-s" "-w" "-X golift.io/version.Version=${version}" ];
2021-05-13 12:16:40 +01:00
meta = with lib; {
description = "Extracts downloads for Radarr, Sonarr, Lidarr - Deletes extracted files after import";
homepage = "https://github.com/davidnewhall/unpackerr";
maintainers = [ ];
2021-05-13 12:16:40 +01:00
license = licenses.mit;
2023-11-23 21:09:35 +00:00
mainProgram = "unpackerr";
2021-05-13 12:16:40 +01:00
};
}