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

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

30 lines
675 B
Nix
Raw Normal View History

2021-05-10 14:53:58 +01:00
{ pkgs, buildGoModule, fetchFromGitHub, lib, perl }:
buildGoModule rec {
pname = "XD";
2022-01-11 02:11:18 +00:00
version = "0.4.2";
2021-05-10 14:53:58 +01:00
src = fetchFromGitHub {
owner = "majestrate";
repo = "XD";
rev = "v${version}";
2022-01-11 02:11:18 +00:00
sha256 = "sha256-AavNiFZlpX6XZQLP1kl9igA833i0gxOTYGubo3MvpSU=";
2021-05-10 14:53:58 +01:00
};
2022-01-11 02:11:18 +00:00
vendorSha256 = "sha256-mJZRk3p+D3tCKIYggD5jVBXcKqJotEexljDzLKpn4/E=";
2021-05-10 14:53:58 +01:00
checkInputs = [ perl ];
postInstall = ''
ln -s $out/bin/XD $out/bin/XD-CLI
'';
meta = with lib; {
description = "i2p bittorrent client";
homepage = "https://xd-torrent.github.io";
maintainers = with maintainers; [ nixbitcoin ];
license = licenses.mit;
platforms = platforms.linux;
};
}