nixpkgs/pkgs/applications/networking/davmail/default.nix

31 lines
956 B
Nix
Raw Normal View History

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