nixpkgs/pkgs/applications/networking/p2p/magnetico/default.nix

34 lines
819 B
Nix
Raw Normal View History

2019-07-13 16:09:25 +00: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 16:09:25 +00:00
src = fetchFromGitHub {
owner = "boramalper";
repo = "magnetico";
rev = "v${version}";
2020-03-14 08:33:09 +00:00
sha256 = "1622xcl5v67lrnkjwbg7g5b5ikrawx7p91jxbj3ixc1za2f3a3fn";
2019-07-13 16:09:25 +00:00
};
2020-03-14 08:33:09 +00:00
modSha256 = "193n323xaypm9xkpray68nqcgyf141x8qzpxzwjnrmsgfz8p6wgk";
2019-07-13 16:09:25 +00:00
nativeBuildInputs = [ go-bindata ];
2019-07-13 16:09:25 +00:00
buildPhase = ''
make magneticow magneticod
'';
doCheck = true;
checkPhase = ''
make test
'';
meta = with lib; {
description = "Autonomous (self-hosted) BitTorrent DHT search engine suite.";
homepage = "https://github.com/boramalper/magnetico";
2019-07-13 16:09:25 +00:00
license = licenses.agpl3;
badPlatforms = platforms.darwin;
maintainers = with maintainers; [ rnhmjoj ];
};
}