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
679 B
Nix
Raw Normal View History

2021-05-10 13:53:58 +00:00
{ pkgs, buildGoModule, fetchFromGitHub, lib, perl }:
buildGoModule rec {
pname = "XD";
2023-03-06 03:01:51 +00:00
version = "0.4.4";
2021-05-10 13:53:58 +00:00
src = fetchFromGitHub {
owner = "majestrate";
repo = "XD";
rev = "v${version}";
2023-03-06 03:01:51 +00:00
sha256 = "sha256-YUstYGIED6ivt+p+aHIK76dLCj+xjytWnZrra49cCi8=";
2021-05-10 13:53:58 +00:00
};
2023-03-06 03:01:51 +00:00
vendorHash = "sha256-wO+IICtGVHhrPa1JUwlx+PuNS32FJNKYmboLd3lFl4w=";
2021-05-10 13:53:58 +00:00
nativeCheckInputs = [ perl ];
2021-05-10 13:53:58 +00:00
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;
};
}