2014-12-06 16:23:30 +01:00
|
|
|
{ stdenv, fetchurl, perl, openssl, db, zlib, uwimap, html-tidy, pam}:
|
2011-11-08 22:07:57 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
ssl = stdenv.lib.optionals uwimap.withSSL
|
|
|
|
"-e 's/CCLIENT_SSL_ENABLE.*= false/CCLIENT_SSL_ENABLE=true/'";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-30 22:45:45 +01:00
|
|
|
name = "prayer-1.3.5";
|
2015-11-29 09:33:50 +01:00
|
|
|
|
2011-11-08 22:07:57 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/${name}.tar.gz";
|
2013-03-30 22:45:45 +01:00
|
|
|
sha256 = "135fjbxjn385b6cjys6qhbwfw61mdcl2akkll4jfpdzfvhbxlyda";
|
2011-11-08 22:07:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./install.patch ];
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e s/gmake/make/ -e 's/LDAP_ENABLE.*= true/LDAP_ENABLE=false/' \
|
|
|
|
${ssl} \
|
|
|
|
-e 's/CCLIENT_LIBS=.*/CCLIENT_LIBS=-lc-client/' \
|
|
|
|
-e 's,^PREFIX .*,PREFIX='$out, \
|
|
|
|
Config
|
|
|
|
sed -i -e s,/usr/bin/perl,${perl}/bin/perl, \
|
|
|
|
templates/src/*.pl
|
2015-11-29 09:33:50 +01:00
|
|
|
'' + /* html-tidy updates */ ''
|
|
|
|
substituteInPlace ./session/html_secure_tidy.c \
|
|
|
|
--replace buffio.h tidybuffio.h
|
2011-11-08 22:07:57 +01:00
|
|
|
'';
|
|
|
|
|
2015-11-29 09:33:50 +01:00
|
|
|
buildInputs = [ openssl db zlib uwimap html-tidy pam ];
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lpam";
|
|
|
|
|
2011-11-08 22:07:57 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/;
|
|
|
|
description = "Yet another Webmail interface for IMAP servers on Unix systems written in C";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-11-08 22:07:57 +01:00
|
|
|
};
|
|
|
|
}
|