about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/nylon/default.nix
blob: b519db4b55b9a1a2dc9087996dc0435f56708d12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, 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
stdenv.mkDerivation rec {
  pname = "nylon";
  version = "1.21";
  src = fetchurl {
    url = "https://monkey.org/~marius/nylon/nylon-${version}.tar.gz";
    sha256 = "34c132b005c025c1a5079aae9210855c80f50dc51dde719298e1113ad73408a4";
  };

  patches = [ ./configure-use-solib.patch ];

  configureFlags = [ "--with-libevent=${libevent-comb}" ];

  buildInputs = [ libevent ];

  meta = with lib; {
    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;
  };
}