Files
nixpkgs/pkgs/by-name/ma/magnetico/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
941 B
Nix

{
lib,
stdenv,
fetchFromGitea,
buildGoModule,
nixosTests,
sqlite,
}:
buildGoModule rec {
pname = "magnetico";
version = "0.13.0";
src = fetchFromGitea {
domain = "maxwell.eurofusion.eu/git";
owner = "rnhmjoj";
repo = "magnetico";
rev = "v${version}";
hash = "sha256-TqzsgUSPIBQT+k+ZrJPkF7uIt8o018ZN5p8nHom8cXM=";
};
vendorHash = "sha256-ZUtmQib6BD7P07ALYXKp/JAQodYnQCuvWZnWl9888Mg=";
buildInputs = [ sqlite ];
tags = [
"fts5"
"libsqlite3"
];
ldflags = [
"-s"
"-w"
];
doCheck = !stdenv.hostPlatform.isStatic;
passthru.tests = { inherit (nixosTests) magnetico; };
meta = with lib; {
description = "Autonomous (self-hosted) BitTorrent DHT search engine suite";
homepage = "https://maxwell.eurofusion.eu/git/rnhmjoj/magnetico";
license = licenses.agpl3Only;
badPlatforms = platforms.darwin;
maintainers = with maintainers; [ rnhmjoj ];
};
}