2015-10-05 15:58:37 +02: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-26 00:21:44 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nylon-1.21";
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://monkey.org/~marius/nylon/nylon-1.21.tar.gz";
|
2009-02-26 00:21:44 +01:00
|
|
|
sha256 = "34c132b005c025c1a5079aae9210855c80f50dc51dde719298e1113ad73408a4";
|
|
|
|
};
|
|
|
|
|
2015-01-14 22:07:53 +01:00
|
|
|
patches = [ ./configure-use-solib.patch ];
|
|
|
|
|
2015-10-05 15:58:37 +02:00
|
|
|
configureFlags = [ "--with-libevent=${libevent-comb}" ];
|
2009-02-26 00:21:44 +01:00
|
|
|
|
|
|
|
buildInputs = [ libevent ];
|
|
|
|
|
2015-01-14 22:07:53 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://monkey.org/~marius/nylon";
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Proxy server, supporting SOCKS 4 and 5, as well as a mirror mode";
|
2015-01-14 22:07:53 +01:00
|
|
|
license = licenses.bsdOriginal;
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
2016-08-02 16:41:28 +02:00
|
|
|
platforms = platforms.linux;
|
2009-02-26 00:21:44 +01:00
|
|
|
};
|
|
|
|
}
|