2015-10-05 14:58:37 +01:00
|
|
|
{ stdenv, fetchurl, libevent, buildEnv }:
|
|
|
|
let
|
|
|
|
# failed to find a better way to make it work
|
|
|
|
libevent-comb = buildEnv {
|
|
|
|
inherit (libevent.out) name;
|
|
|
|
paths = [ libevent.dev libevent.out ];
|
|
|
|
};
|
|
|
|
in
|
2009-02-25 23:21:44 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nylon-1.21";
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = https://monkey.org/~marius/nylon/nylon-1.21.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 14:58:37 +01:00
|
|
|
configureFlags = [ "--with-libevent=${libevent-comb}" ];
|
2009-02-25 23:21:44 +00:00
|
|
|
|
|
|
|
buildInputs = [ libevent ];
|
|
|
|
|
2015-01-14 21:07:53 +00:00
|
|
|
meta = with stdenv.lib; {
|
2009-02-25 23:21:44 +00:00
|
|
|
homepage = http://monkey.org/~marius/nylon;
|
2013-10-06 10:49:53 +01: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;
|
|
|
|
maintainers = with maintainers; [ edwtjo viric ];
|
2016-08-02 15:41:28 +01:00
|
|
|
platforms = platforms.linux;
|
2009-02-25 23:21:44 +00:00
|
|
|
};
|
|
|
|
}
|