From 4feafd70204f9c13500bd427d250fac60ca595ef Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 14 Dec 2017 11:18:14 +0100 Subject: ma pkgs.vpn-ws: init at 0.2 --- makefu/5pkgs/vpn-ws/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 makefu/5pkgs/vpn-ws/default.nix (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/vpn-ws/default.nix b/makefu/5pkgs/vpn-ws/default.nix new file mode 100644 index 000000000..71573384d --- /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 = "068vzrpzgksadb31khancnpkgzhdcr6kh6k9wgm77q68skwl3w0k"; + }; + + 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; + }; +} -- cgit v1.2.3 From 4414e50bb84c307627e5c9ec71510ab907d87c62 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 28 Dec 2017 16:00:40 +0100 Subject: ma vpn-ws: fix sha256 --- makefu/5pkgs/vpn-ws/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/vpn-ws/default.nix b/makefu/5pkgs/vpn-ws/default.nix index 71573384d..1f2e45fe4 100644 --- a/makefu/5pkgs/vpn-ws/default.nix +++ b/makefu/5pkgs/vpn-ws/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { owner = "unbit"; repo = "vpn-ws"; rev = version; - sha256 = "068vzrpzgksadb31khancnpkgzhdcr6kh6k9wgm77q68skwl3w0k"; + sha256 = "0k7338xxvg1k988zz3nb681nsqmfiik9bnkk7jmxjz7j0wfwq8nj"; }; patchPhase = '' -- cgit v1.2.3