2021-01-11 07:54:33 +00:00
|
|
|
{ fetchurl, lib, 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";
|
2021-05-13 21:23:15 +01:00
|
|
|
version = "5.5.1";
|
2014-02-19 15:38:44 +00:00
|
|
|
src = fetchurl {
|
2021-05-13 21:23:15 +01:00
|
|
|
url = "mirror://sourceforge/${pname}/${version}/${pname}-${version}-3299.zip";
|
|
|
|
sha256 = "sha256-NN/TUOcUIifNzrJnZmtYhs6UVktjlfoOYJjYaMEQpI4=";
|
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 = ''
|
2021-05-13 21:23:15 +01:00
|
|
|
runHook preInstall
|
2017-04-13 13:32:48 +01:00
|
|
|
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 \
|
2021-01-15 13:21:58 +00:00
|
|
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ glib gtk2 libXtst ]}
|
2021-05-13 21:23:15 +01:00
|
|
|
runHook postInstall
|
2017-04-13 13:32:48 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01: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;
|
2021-05-13 21:23:15 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2014-02-19 15:38:44 +00:00
|
|
|
};
|
|
|
|
}
|