nixpkgs/pkgs/by-name/bi/bitmagnet/package.nix
Stanisław Pitucha 46cf5b10ae
Merge pull request #309673 from r-ryantm/auto-update/bitmagnet
bitmagnet: 0.7.14 -> 0.8.0
2024-05-15 23:29:45 +10:00

37 lines
997 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "bitmagnet";
version = "0.8.0";
src = fetchFromGitHub {
owner = "bitmagnet-io";
repo = "bitmagnet";
rev = "v${version}";
hash = "sha256-P5GfPRIrwLLMBRgoN6d092HiThMghEj1zcaf6BU+IWU=";
};
vendorHash = "sha256-exKQTsyP7LL63WHZ8/WchLh4y0Oj9LC4lxiZTOfWARU=";
ldflags = [ "-s" "-w" "-X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag=v${version}" ];
passthru = {
updateScript = nix-update-script { };
};
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;
maintainers = with lib.maintainers; [ viraptor ];
mainProgram = "bitmagnet";
};
}