2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libevent }:
|
2016-07-13 14:48:56 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-02 01:22:21 +01:00
|
|
|
version = "1.60";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ocproxy";
|
2016-07-13 14:48:56 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cernekee";
|
|
|
|
repo = "ocproxy";
|
|
|
|
rev = "v${version}";
|
2017-03-02 01:22:21 +01:00
|
|
|
sha256 = "03323nnhb4y9nzwva04mq7xg03dvdrgp689g89f69jqc261skcqx";
|
2016-07-13 14:48:56 +02:00
|
|
|
};
|
|
|
|
|
2017-03-02 01:22:21 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
|
|
buildInputs = [ libevent ];
|
2016-07-13 14:48:56 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-07-13 14:48:56 +02:00
|
|
|
description = "OpenConnect proxy";
|
2017-12-05 23:20:11 +01:00
|
|
|
longDescription = ''
|
2016-07-13 14:48:56 +02:00
|
|
|
ocproxy is a user-level SOCKS and port forwarding proxy for OpenConnect
|
|
|
|
based on lwIP.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/cernekee/ocproxy";
|
2016-07-13 14:48:56 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.joko ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|