1{ lib, stdenv, fetchFromGitHub, autoreconfHook, openssl }:
2
3stdenv.mkDerivation rec {
4 pname = "gsocket";
5 version = "1.4.40";
6
7 src = fetchFromGitHub {
8 owner = "hackerschoice";
9 repo = "gsocket";
10 rev = "v${version}";
11 hash = "sha256-pY4tjrMbx+OxkJfr8czo5fbhfcmJbiNX4B+FibzUc7w=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook ];
15 buildInputs = [ openssl ];
16 dontDisableStatic = true;
17
18 meta = with lib; {
19 description = "Connect like there is no firewall, securely";
20 homepage = "https://www.gsocket.io";
21 license = licenses.bsd2;
22 platforms = platforms.unix;
23 maintainers = [ maintainers.msm ];
24 };
25}