about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/xd
diff options
context:
space:
mode:
authornixbitcoin <nixbitcoin@i2pmail.org>2021-05-10 13:53:58 +0000
committernixbitcoin <nixbitcoin@i2pmail.org>2021-05-11 11:21:25 +0000
commit315d0829524984cc4b1e8b1390c668d9b12e3bd2 (patch)
treeb79f00d192e7defc0f05d061c15eeb0a09f40eb2 /pkgs/applications/networking/p2p/xd
parent542e957965dd12bdf54ff9417a78b6dbfea616e7 (diff)
xd: init at 0.4.0
Diffstat (limited to 'pkgs/applications/networking/p2p/xd')
-rw-r--r--pkgs/applications/networking/p2p/xd/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/networking/p2p/xd/default.nix b/pkgs/applications/networking/p2p/xd/default.nix
new file mode 100644
index 0000000000000..54581a6070baf
--- /dev/null
+++ b/pkgs/applications/networking/p2p/xd/default.nix
@@ -0,0 +1,29 @@
+{ pkgs, buildGoModule, fetchFromGitHub, lib, perl }:
+
+buildGoModule rec {
+  pname = "XD";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "majestrate";
+    repo = "XD";
+    rev = "v${version}";
+    sha256 = "sha256-fXENoqhR04TYS/kAJUqsqa0+j+KyzdsMlXIZ2GMPMhc=";
+  };
+
+  vendorSha256 = "1wg3cym2rwrhjsqlgd38l8mdq5alccz808465117n3vyga9m35lq";
+
+  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;
+  };
+}