msgviewer: init at 1.9

This commit is contained in:
Peter Hoeg 2017-08-17 09:48:21 +08:00
parent 0f02879e01
commit 57ee7283d2
2 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,38 @@
{ stdenv, fetchurl, makeWrapper, writeScript, unzip, jre }:
let
version = "1.9";
name = "msgviewer-${version}";
uname = "MSGViewer-${version}";
in stdenv.mkDerivation rec {
inherit name;
src = fetchurl {
url = "mirror://sourceforge/msgviewer/${uname}/${uname}.zip";
sha256 = "0igmr8c0757xsc94xlv2470zv2mz57zaj52dwr9wj8agmj23jbjz";
};
buildCommand = ''
dir=$out/lib/msgviewer
mkdir -p $out/bin $dir
unzip $src -d $dir
mv $dir/${uname}/* $dir
rmdir $dir/${uname}
cat <<_EOF > $out/bin/msgviewer
#!${stdenv.shell} -eu
${stdenv.lib.getBin jre}/bin/java -jar $dir/MSGViewer.jar $@
_EOF
chmod 755 $out/bin/msgviewer
'';
nativeBuildInputs = [ makeWrapper unzip ];
meta = with stdenv.lib; {
description = "Viewer for .msg files (MS Outlook)";
homepage = https://www.washington.edu/alpine/;
license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.all;
};
}

View File

@ -9654,7 +9654,7 @@ with pkgs;
opencollada = callPackage ../development/libraries/opencollada { };
opencore-amr = callPackage ../development/libraries/opencore-amr { };
opencsg = callPackage ../development/libraries/opencsg { };
openct = callPackage ../development/libraries/openct { };
@ -11366,7 +11366,7 @@ with pkgs;
munin = callPackage ../servers/monitoring/munin { };
nagiosPluginsOfficial = callPackage ../servers/monitoring/nagios/plugins/official-2.x.nix { };
checkSSLCert = callPackage ../servers/monitoring/nagios/plugins/check_ssl_cert.nix { };
neo4j = callPackage ../servers/nosql/neo4j { };
@ -13272,6 +13272,8 @@ with pkgs;
tcl = tcl-8_5;
};
msgviewer = callPackage ../applications/networking/mailreaders/msgviewer { };
amarok = kde4.callPackage ../applications/audio/amarok {
ffmpeg = ffmpeg_2;
};