about summary refs log tree commit diff
path: root/pkgs/applications/networking/websocketd
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2019-01-03 17:04:35 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2019-01-03 19:39:36 +0100
commitdaf3d7d49f6c966aa4e06dc6f8477b9f41c78d09 (patch)
tree69ae056ec800956de045841ba332c885ed5bf5d0 /pkgs/applications/networking/websocketd
parent2c08c89a7a13ad6a50603480bd5330d1b83957ca (diff)
downloadnixlib-daf3d7d49f6c966aa4e06dc6f8477b9f41c78d09.tar
nixlib-daf3d7d49f6c966aa4e06dc6f8477b9f41c78d09.tar.gz
nixlib-daf3d7d49f6c966aa4e06dc6f8477b9f41c78d09.tar.bz2
nixlib-daf3d7d49f6c966aa4e06dc6f8477b9f41c78d09.tar.lz
nixlib-daf3d7d49f6c966aa4e06dc6f8477b9f41c78d09.tar.xz
nixlib-daf3d7d49f6c966aa4e06dc6f8477b9f41c78d09.tar.zst
nixlib-daf3d7d49f6c966aa4e06dc6f8477b9f41c78d09.zip
websocketd: init at 0.3.0
Diffstat (limited to 'pkgs/applications/networking/websocketd')
-rw-r--r--pkgs/applications/networking/websocketd/default.nix24
-rw-r--r--pkgs/applications/networking/websocketd/deps.nix12
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/networking/websocketd/default.nix b/pkgs/applications/networking/websocketd/default.nix
new file mode 100644
index 000000000000..050358e4dcaa
--- /dev/null
+++ b/pkgs/applications/networking/websocketd/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildGoPackage, fetchgit }:
+
+buildGoPackage rec {
+  name = "websocketd-${version}";
+  version = "0.3.0";
+  rev = "729c67f052f8f16a0a0aa032816a57649c0ebed3";
+
+  goPackagePath = "github.com/joewalnes/websocketd";
+
+  src = fetchgit {
+    inherit rev;
+    url = "https://github.com/joewalnes/websocketd";
+    sha256 = "1n4fag75lpfxg1pm1pr5v0p44dijrxj59s6dn4aqxirhxkq91lzb";
+  };
+
+  goDeps = ./deps.nix;
+
+  meta = with stdenv.lib; {
+    description = "Turn any program that uses STDIN/STDOUT into a WebSocket server";
+    homepage = "http://websocketd.com/";
+    maintainers = [ maintainers.bjornfor ];
+    license = licenses.bsd2;
+  };
+}
diff --git a/pkgs/applications/networking/websocketd/deps.nix b/pkgs/applications/networking/websocketd/deps.nix
new file mode 100644
index 000000000000..1e610691f52a
--- /dev/null
+++ b/pkgs/applications/networking/websocketd/deps.nix
@@ -0,0 +1,12 @@
+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
+[
+  {
+    goPackagePath = "github.com/gorilla/websocket";
+    fetch = {
+      type = "git";
+      url = "https://github.com/gorilla/websocket";
+      rev = "95ba29eb981bbb27d92e1f70bf8a1949452d926b";
+      sha256 = "08lvc9l0qagyhyrjj6jkhpq3zapa5gqr966bm33nb4bc0pd38f48";
+    };
+  }
+]