Merge pull request #179410 from peterhoeg/u/davmail6
davmail: 5.5.1 -> 6.0.1
This commit is contained in:
commit
65511848ba
1 changed files with 38 additions and 9 deletions
|
@ -1,32 +1,61 @@
|
||||||
{ fetchurl, lib, stdenv, jre, glib, libXtst, gtk2, makeWrapper, unzip }:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, lib
|
||||||
|
, makeWrapper
|
||||||
|
, unzip
|
||||||
|
, glib
|
||||||
|
, gtk2
|
||||||
|
, gtk3
|
||||||
|
, jre
|
||||||
|
, libXtst
|
||||||
|
, zulu
|
||||||
|
, preferGtk3 ? true
|
||||||
|
, preferZulu ? true
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
rev = 3390;
|
||||||
|
jre' = if preferZulu then zulu else jre;
|
||||||
|
gtk' = if preferGtk3 then gtk3 else gtk2;
|
||||||
|
|
||||||
|
inherit (lib) makeLibraryPath versions;
|
||||||
|
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "davmail";
|
pname = "davmail";
|
||||||
version = "5.5.1";
|
version = "6.0.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/${pname}/${version}/${pname}-${version}-3299.zip";
|
url = "mirror://sourceforge/${pname}/${version}/${pname}-${version}-${toString rev}.zip";
|
||||||
sha256 = "sha256-NN/TUOcUIifNzrJnZmtYhs6UVktjlfoOYJjYaMEQpI4=";
|
sha256 = "1i1z1kdglccg7pyidlfbagdhgs0wqvybl8dwxcpglh2hkvi0dba0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i -e '/^JAVA_OPTS/d' davmail
|
||||||
|
'';
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper unzip ];
|
nativeBuildInputs = [ makeWrapper unzip ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/share/davmail
|
mkdir -p $out/share/davmail
|
||||||
cp -vR ./* $out/share/davmail
|
cp -vR ./* $out/share/davmail
|
||||||
makeWrapper $out/share/davmail/davmail $out/bin/davmail \
|
makeWrapper $out/share/davmail/davmail $out/bin/davmail \
|
||||||
--prefix PATH : ${jre}/bin \
|
--set-default JAVA_OPTS "-Xmx512M -Dsun.net.inetaddr.ttl=60 -Djdk.gtk.version=${lib.versions.major gtk'.version}" \
|
||||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ glib gtk2 libXtst ]}
|
--prefix PATH : ${jre'}/bin \
|
||||||
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ glib gtk' libXtst ]}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
description = "A Java application which presents a Microsoft Exchange server as local CALDAV, IMAP and SMTP servers";
|
||||||
maintainers = [ ];
|
homepage = "http://davmail.sourceforge.net/";
|
||||||
platforms = platforms.all;
|
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue