about summary refs log tree commit diff
path: root/pkgs/development/libraries/kcp
diff options
context:
space:
mode:
authorRed Star Over Earth <rs0vere@proton.me>2023-08-26 17:31:47 +0800
committerRed Star Over Earth <rs0vere@proton.me>2023-08-26 17:31:47 +0800
commit5000fb7c4791b4948b41ce906e5a5db0e4ecb62c (patch)
tree593d2e329ef5ed1f41996c587e9e44b7dbe21786 /pkgs/development/libraries/kcp
parent9b30d7b2b20a05a60ea3c9da7c6993e576ef8708 (diff)
kcp: init at 1.7
Diffstat (limited to 'pkgs/development/libraries/kcp')
-rw-r--r--pkgs/development/libraries/kcp/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/libraries/kcp/default.nix b/pkgs/development/libraries/kcp/default.nix
new file mode 100644
index 0000000000000..69a2b91553e4a
--- /dev/null
+++ b/pkgs/development/libraries/kcp/default.nix
@@ -0,0 +1,27 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+}:
+
+stdenv.mkDerivation rec {
+  pname = "kcp";
+  version = "1.7";
+
+  src = fetchFromGitHub {
+    owner = "skywind3000";
+    repo = "kcp";
+    rev = version;
+    hash = "sha256-yW40x4T++4rB7hoabGN8qiSN7octyoUYEfE9oDlLxjU=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  meta = with lib; {
+    description = "A Fast and Reliable ARQ Protocol";
+    homepage = "https://github.com/skywind3000/kcp";
+    license = licenses.mit;
+    maintainers = with maintainers; [ rs0vere ];
+    platforms = platforms.all;
+  };
+}