about summary refs log tree commit diff
path: root/pkgs/tools/misc/pcp
diff options
context:
space:
mode:
authormatthewcroughan <matt@croughan.sh>2021-12-31 03:50:32 +0000
committermatthewcroughan <matt@croughan.sh>2022-09-13 17:51:44 +0100
commit9e0ad1cf1f184e77ba59f62bb36da37d6490751d (patch)
treebd486bd258d908e619547bdf5eb4f68c42b0cf1c /pkgs/tools/misc/pcp
parentde49d559382ea05a304589b6fc13c9be68351810 (diff)
pcp: init at 0.4.0
Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com>
Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
Diffstat (limited to 'pkgs/tools/misc/pcp')
-rw-r--r--pkgs/tools/misc/pcp/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pcp/default.nix b/pkgs/tools/misc/pcp/default.nix
new file mode 100644
index 0000000000000..fa2c64dabb067
--- /dev/null
+++ b/pkgs/tools/misc/pcp/default.nix
@@ -0,0 +1,23 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "pcp";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "dennis-tra";
+    repo = "pcp";
+    rev = "v${version}";
+    sha256 = "sha256-aZO8VuOiYhOPctFKZ6a2psJB0lKHlPc+NLy2RWDU4JI=";
+  };
+
+  vendorSha256 = "sha256-3bkzBQ950Phg4A9p+IjeUx7Xw7eVmUbeYnQViNjghFk=";
+
+  meta = with lib; {
+    description = "Command line peer-to-peer data transfer tool based on libp2p";
+    homepage = "https://github.com/dennis-tra/pcp";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ matthewcroughan ];
+    platforms = platforms.linux;
+  };
+}