2018-08-24 18:04:37 +01:00
|
|
|
{ fetchurl, stdenv, jre, glib, libXtst, gtk2, makeWrapper, unzip }:
|
2014-02-19 15:38:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-22 23:36:57 +00:00
|
|
|
pname = "davmail";
|
|
|
|
version = "5.2.0";
|
2014-02-19 15:38:44 +00:00
|
|
|
src = fetchurl {
|
2019-02-22 23:36:57 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${version}/${pname}-${version}-2961.zip";
|
|
|
|
sha256 = "0jw6sjg7k7zg8ab0srz6cjjj5hnw5ppxx1w35sw055dlg54fh2m5";
|
2014-02-19 15:38:44 +00:00
|
|
|
};
|
|
|
|
|
2018-08-24 18:04:37 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper unzip ];
|
2014-02-19 15:38:44 +00:00
|
|
|
|
2017-04-13 13:32:48 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/davmail
|
2018-08-24 18:04:37 +01:00
|
|
|
cp -vR ./* $out/share/davmail
|
2019-02-22 23:36:57 +00:00
|
|
|
makeWrapper $out/share/davmail/davmail $out/bin/davmail \
|
2017-04-13 13:32:48 +01:00
|
|
|
--prefix PATH : ${jre}/bin \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ glib gtk2 libXtst ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-01-03 12:37:03 +00:00
|
|
|
homepage = http://davmail.sourceforge.net/;
|
2014-02-19 15:38:44 +00:00
|
|
|
description = "A Java application which presents a Microsoft Exchange server as local CALDAV, IMAP and SMTP servers";
|
2017-04-13 13:32:48 +01:00
|
|
|
maintainers = [ maintainers.hinton ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2;
|
2014-02-19 15:38:44 +00:00
|
|
|
};
|
|
|
|
}
|