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