let nixpkgs = builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/f12ee5f64c6a.tar.gz"; sha256 = "14afxk35w3kbqimxcp39ngv9cqpc24glss1727ymk4napfg5v7hm"; }; pkgs = import { }; magnetico = { lib, buildGoModule, nixosTests, sqlite }: buildGoModule { pname = "magnetico"; version = "0.12.1"; src = lib.cleanSource ./.; vendorHash = "sha256-jIVMQtPCq9RYaYsH4LSZJFspH6TpCbgzHN0GX8cM/CI="; buildInputs = [ sqlite ]; tags = [ "fts5" "libsqlite3" ]; ldflags = [ "-s" "-w" ]; passthru.tests = { inherit (nixosTests) magnetico; }; meta = with lib; { description = "Autonomous (self-hosted) BitTorrent DHT search engine suite"; homepage = "https://maxwell.ydns.eu/git/rnhmjoj/magnetico"; license = licenses.agpl3Only; badPlatforms = platforms.darwin; maintainers = with maintainers; [ rnhmjoj ]; }; }; in pkgs.callPackage magnetico { }