summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/vpn-ws/default.nix
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-01-05 21:14:15 +0100
committerjeschli <jeschli@gmail.com>2018-01-05 21:14:15 +0100
commit183b001e1aca601e420ef07ec4944a15c13a8d2c (patch)
tree9d34f79c2ee7cb073a39ab44ef2795055a42d067 /makefu/5pkgs/vpn-ws/default.nix
parentea85e788ae2a6ca24ccb997372542f7f2a104080 (diff)
parente083b18e34519f30bba79dfd894c3b828fd13da7 (diff)
Merge branch 'master' of prism.r:stockholm
Diffstat (limited to 'makefu/5pkgs/vpn-ws/default.nix')
-rw-r--r--makefu/5pkgs/vpn-ws/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/makefu/5pkgs/vpn-ws/default.nix b/makefu/5pkgs/vpn-ws/default.nix
new file mode 100644
index 000000000..1f2e45fe4
--- /dev/null
+++ b/makefu/5pkgs/vpn-ws/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, lib, pkgs, fetchurl,fetchFromGitHub, openssl }:
+stdenv.mkDerivation rec {
+ pname = "vpn-ws";
+ version = "9d0e866";
+ name = "${pname}-${version}";
+
+ src = fetchFromGitHub {
+ owner = "unbit";
+ repo = "vpn-ws";
+ rev = version;
+ sha256 = "0k7338xxvg1k988zz3nb681nsqmfiik9bnkk7jmxjz7j0wfwq8nj";
+ };
+
+ patchPhase = ''
+ sed -i 's/-Werror//' Makefile
+ '';
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp vpn-ws vpn-ws-client $out/bin
+ '';
+
+ buildInputs = [ openssl.dev ];
+
+ meta = {
+ homepage = https://github.com/unbit/vpn-ws;
+ description = "A VPN system over websockets";
+ license = lib.licenses.mit;
+ };
+}