2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libevent, buildEnv }:
|
2020-04-24 23:36:52 +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-05 21:33:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nylon";
|
|
|
|
version = "1.21";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "https://monkey.org/~marius/nylon/nylon-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "34c132b005c025c1a5079aae9210855c80f50dc51dde719298e1113ad73408a4";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./configure-use-solib.patch ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-libevent=${libevent-comb}" ];
|
|
|
|
|
|
|
|
buildInputs = [ libevent ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://monkey.org/~marius/nylon";
|
|
|
|
description = "Proxy server, supporting SOCKS 4 and 5, as well as a mirror mode";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|