summary refs log tree commit diff
path: root/pkgs/tools/networking/imapproxy/default.nix
blob: dd149f57432b5b6ce7aa27f85834d3fe3d1dae9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{lib, stdenv, fetchurl, openssl, ncurses}:

stdenv.mkDerivation {
  name = "imapproxy-1.2.7";
  src = fetchurl {
    url = "mirror://sourceforge/squirrelmail/squirrelmail-imap_proxy-1.2.7.tar.bz2";
    sha256 = "0j5fq755sxiz338ia93jrkiy64crv30g37pir5pxfys57q7d92nx";
  };

  buildInputs = [ openssl ncurses ];

  patchPhase = ''
    sed -i -e 's/-o \(root\|bin\) -g \(sys\|bin\)//' Makefile.in
  '';

  meta = {
    homepage = "http://imapproxy.org/";
    description = "It proxies IMAP transactions caching server connections";
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.unix;
  };
}