2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libevent, buildEnv }:
|
2015-10-05 13:58:37 +00:00
|
|
|
let
|
|
|
|
# failed to find a better way to make it work
|
|
|
|
libevent-comb = buildEnv {
|
|
|
|
inherit (libevent.out) name;
|
|
|
|
paths = [ libevent.dev libevent.out ];
|
|
|
|
};
|
|
|
|
in
|
2021-08-01 18:11:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nylon";
|
|
|
|
version = "1.21";
|
2009-02-25 23:21:44 +00:00
|
|
|
src = fetchurl {
|
2021-08-01 18:11:18 +00:00
|
|
|
url = "https://monkey.org/~marius/nylon/nylon-${version}.tar.gz";
|
2009-02-25 23:21:44 +00:00
|
|
|
sha256 = "34c132b005c025c1a5079aae9210855c80f50dc51dde719298e1113ad73408a4";
|
|
|
|
};
|
|
|
|
|
2015-01-14 21:07:53 +00:00
|
|
|
patches = [ ./configure-use-solib.patch ];
|
|
|
|
|
2015-10-05 13:58:37 +00:00
|
|
|
configureFlags = [ "--with-libevent=${libevent-comb}" ];
|
2009-02-25 23:21:44 +00:00
|
|
|
|
|
|
|
buildInputs = [ libevent ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://monkey.org/~marius/nylon";
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Proxy server, supporting SOCKS 4 and 5, as well as a mirror mode";
|
2015-01-14 21:07:53 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
2016-08-02 14:41:28 +00:00
|
|
|
platforms = platforms.linux;
|
2009-02-25 23:21:44 +00:00
|
|
|
};
|
|
|
|
}
|