at 18.09-beta 41 lines 1.3 kB view raw
1{ stdenv, fetchurl, perl, openssl, db, zlib, uwimap, html-tidy, pam}: 2 3let 4 ssl = stdenv.lib.optionals uwimap.withSSL 5 "-e 's/CCLIENT_SSL_ENABLE.*= false/CCLIENT_SSL_ENABLE=true/'"; 6in 7stdenv.mkDerivation rec { 8 name = "prayer-1.3.5"; 9 10 src = fetchurl { 11 url = "ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/${name}.tar.gz"; 12 sha256 = "135fjbxjn385b6cjys6qhbwfw61mdcl2akkll4jfpdzfvhbxlyda"; 13 }; 14 15 patches = [ ./install.patch ]; 16 postPatch = '' 17 sed -i -e s/gmake/make/ -e 's/LDAP_ENABLE.*= true/LDAP_ENABLE=false/' \ 18 ${ssl} \ 19 -e 's/CCLIENT_LIBS=.*/CCLIENT_LIBS=-lc-client/' \ 20 -e 's,^PREFIX .*,PREFIX='$out, \ 21 -e 's,^CCLIENT_DIR=.*,CCLIENT_DIR=${uwimap}/include/c-client,' \ 22 Config 23 sed -i -e s,/usr/bin/perl,${perl}/bin/perl, \ 24 templates/src/*.pl 25 '' + /* html-tidy updates */ '' 26 substituteInPlace ./session/html_secure_tidy.c \ 27 --replace buffio.h tidybuffio.h 28 ''; 29 30 buildInputs = [ openssl db zlib uwimap html-tidy pam ]; 31 nativeBuildInputs = [ perl ]; 32 33 NIX_LDFLAGS = "-lpam"; 34 35 meta = { 36 homepage = http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/; 37 description = "Yet another Webmail interface for IMAP servers on Unix systems written in C"; 38 license = stdenv.lib.licenses.gpl2Plus; 39 platforms = stdenv.lib.platforms.linux; 40 }; 41}