2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, nix-update-script
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bitmagnet";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.4.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitmagnet-io";
|
|
|
|
repo = "bitmagnet";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Geukd4JYwmdG7M+HDCCqpiUjor1TWsqBY42ACd+LasU=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-TbfbrvXbO+eOb1Ot/gWRBjggTj9jkSGulHIJdziqsVc=";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
|
|
|
description = "A 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;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with lib.maintainers; [ eclairevoyant viraptor ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "bitmagnet";
|
|
|
|
};
|
|
|
|
}
|