nixpkgs/pkgs/tools/networking/ocproxy/default.nix

34 lines
808 B
Nix
Raw Normal View History

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