nixpkgs/pkgs/by-name/bi/bitmagnet/package.nix

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

37 lines
995 B
Nix
Raw Normal View History

2023-10-08 19:20:31 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
2023-12-26 11:21:12 +00:00
, nix-update-script
2023-10-08 19:20:31 +01:00
}:
buildGoModule rec {
pname = "bitmagnet";
2024-07-25 22:29:11 +01:00
version = "0.9.5";
2023-10-08 19:20:31 +01:00
src = fetchFromGitHub {
owner = "bitmagnet-io";
repo = "bitmagnet";
rev = "v${version}";
2024-07-25 22:29:11 +01:00
hash = "sha256-so9GD9hyGfuqqYq61OD1WJXba22cR4msOPp1wLI5vAU=";
2023-10-08 19:20:31 +01:00
};
2024-06-15 02:51:56 +01:00
vendorHash = "sha256-aauXgHPZbSiTW9utuHXzJr7GsWs/2aFiGuukA/B9BRc=";
2023-10-08 19:20:31 +01:00
2024-05-15 00:06:28 +01:00
ldflags = [ "-s" "-w" "-X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag=v${version}" ];
2023-10-08 19:20:31 +01:00
2023-12-26 11:21:12 +00:00
passthru = {
updateScript = nix-update-script { };
};
2023-10-08 19:20:31 +01:00
meta = {
description = "Self-hosted BitTorrent indexer, DHT crawler, and torrent search engine";
longDescription = ''
A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
'';
homepage = "https://bitmagnet.io/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ viraptor ];
2023-10-08 19:20:31 +01:00
mainProgram = "bitmagnet";
};
}