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