3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/p2p/magnetico/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
803 B
Nix
Raw Normal View History

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