From 6a369a77e0e325c5dc1468316fc3c4929da87c6b Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 18 Jul 2023 10:24:14 +0100 Subject: [PATCH] nimPackages.ws: init 0.5.0 --- pkgs/development/nim-packages/ws/default.nix | 21 ++++++++++++++++++++ pkgs/top-level/nim-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/nim-packages/ws/default.nix diff --git a/pkgs/development/nim-packages/ws/default.nix b/pkgs/development/nim-packages/ws/default.nix new file mode 100644 index 000000000000..704d6d936bda --- /dev/null +++ b/pkgs/development/nim-packages/ws/default.nix @@ -0,0 +1,21 @@ +{ lib, buildNimPackage, fetchFromGitHub }: + +buildNimPackage (finalAttrs: { + pname = "ws"; + version = "0.5.0"; + src = fetchFromGitHub { + owner = "treeform"; + repo = "ws"; + rev = finalAttrs.version; + hash = "sha256-3wVi6CjMTjcc5MJEozJN6W3TuYDb53w2MDCsv6lMH0k="; + }; + preCheck = '' + rm tests/test_ws.nim tests/test_timeout.nim + ''; + meta = finalAttrs.src.meta // { + description = "Simple WebSocket library for Nim"; + homepage = "https://github.com/treeform/ws"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ehmry ]; + }; +}) diff --git a/pkgs/top-level/nim-packages.nix b/pkgs/top-level/nim-packages.nix index 9b45284b5e88..9bd4db77d2e9 100644 --- a/pkgs/top-level/nim-packages.nix +++ b/pkgs/top-level/nim-packages.nix @@ -132,6 +132,8 @@ lib.makeScope newScope (self: vmath = callPackage ../development/nim-packages/vmath { }; + ws = callPackage ../development/nim-packages/ws { }; + x11 = callPackage ../development/nim-packages/x11 { }; zippy = callPackage ../development/nim-packages/zippy { };