2019-07-13 09:09:25 -07:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, go-bindata }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "magnetico";
|
2020-11-30 17:06:30 -08:00
|
|
|
version = "0.12.0";
|
2019-07-13 09:09:25 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boramalper";
|
|
|
|
repo = "magnetico";
|
|
|
|
rev = "v${version}";
|
2020-11-30 17:06:30 -08:00
|
|
|
sha256 = "1avqnfn4llmc9xmpsjfc9ivki0cfvd8sljfzd9yac94xcj581s83";
|
2019-07-13 09:09:25 -07:00
|
|
|
};
|
|
|
|
|
2020-11-30 17:06:30 -08:00
|
|
|
vendorSha256 = "087kikj6sjhjxqymnj7bpxawfmwckihi6mbmi39w0bn2040aflx5";
|
2019-07-13 09:09:25 -07:00
|
|
|
|
2020-03-17 10:42:22 -07:00
|
|
|
nativeBuildInputs = [ go-bindata ];
|
2019-07-13 09:09:25 -07:00
|
|
|
buildPhase = ''
|
|
|
|
make magneticow magneticod
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-10 22:55:05 -07:00
|
|
|
description = "Autonomous (self-hosted) BitTorrent DHT search engine suite";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/boramalper/magnetico";
|
2019-07-13 09:09:25 -07:00
|
|
|
license = licenses.agpl3;
|
|
|
|
badPlatforms = platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
2020-07-30 20:58:04 -07:00
|
|
|
}
|