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

33 lines
1,006 B
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, jre, glib, libXtst, gtk2, makeWrapper, unzip }:
stdenv.mkDerivation rec {
pname = "davmail";
2021-05-13 22:23:15 +02:00
version = "5.5.1";
src = fetchurl {
2021-05-13 22:23:15 +02:00
url = "mirror://sourceforge/${pname}/${version}/${pname}-${version}-3299.zip";
sha256 = "sha256-NN/TUOcUIifNzrJnZmtYhs6UVktjlfoOYJjYaMEQpI4=";
};
2018-08-24 19:04:37 +02:00
sourceRoot = ".";
nativeBuildInputs = [ makeWrapper unzip ];
installPhase = ''
2021-05-13 22:23:15 +02:00
runHook preInstall
mkdir -p $out/share/davmail
2018-08-24 19:04:37 +02:00
cp -vR ./* $out/share/davmail
makeWrapper $out/share/davmail/davmail $out/bin/davmail \
--prefix PATH : ${jre}/bin \
2021-01-15 14:21:58 +01:00
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ glib gtk2 libXtst ]}
2021-05-13 22:23:15 +02: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 = [ maintainers.hinton ];
platforms = platforms.all;
2021-05-13 22:23:15 +02:00
license = licenses.gpl2Plus;
};
}