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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
987 B
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, jre, glib, libXtst, gtk2, makeWrapper, unzip }:
stdenv.mkDerivation rec {
pname = "davmail";
2021-05-13 20:23:15 +00:00
version = "5.5.1";
src = fetchurl {
2021-05-13 20:23:15 +00:00
url = "mirror://sourceforge/${pname}/${version}/${pname}-${version}-3299.zip";
sha256 = "sha256-NN/TUOcUIifNzrJnZmtYhs6UVktjlfoOYJjYaMEQpI4=";
};
2018-08-24 17:04:37 +00:00
sourceRoot = ".";
nativeBuildInputs = [ makeWrapper unzip ];
installPhase = ''
2021-05-13 20:23:15 +00:00
runHook preInstall
mkdir -p $out/share/davmail
2018-08-24 17:04:37 +00: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 ]}
2021-05-13 20:23:15 +00:00
runHook postInstall
'';
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 = [ ];
platforms = platforms.all;
2021-05-13 20:23:15 +00:00
license = licenses.gpl2Plus;
};
}