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
816 B
Nix
Raw Normal View History

2021-05-18 07:07:09 +00:00
{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:
2021-05-13 11:16:40 +00:00
buildGoModule rec {
pname = "unpackerr";
2023-08-02 23:10:04 +00:00
version = "0.12.0";
2021-05-13 11:16:40 +00:00
src = fetchFromGitHub {
owner = "davidnewhall";
repo = "unpackerr";
rev = "v${version}";
2023-08-02 23:10:04 +00:00
sha256 = "sha256-yMmn733j6k9r8I/lvVOZNL6o35eSPJZ5G8jw9xaJZRg=";
2021-05-13 11:16:40 +00:00
};
2023-08-02 23:10:04 +00:00
vendorHash = "sha256-1VMeRB34JS9EwyGhPxFsRIgKaY6NyIMsa132PQKoPYY=";
2021-05-13 11:16:40 +00:00
2021-05-18 07:07:09 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
ldflags = [ "-s" "-w" "-X golift.io/version.Version=${version}" ];
2021-05-13 11:16:40 +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;
2023-11-23 21:09:35 +00:00
mainProgram = "unpackerr";
2021-05-13 11:16:40 +00:00
};
}