diff options
author | Alexander Sosedkin <monk@unboiled.info> | 2018-09-30 22:37:32 +0700 |
---|---|---|
committer | Alexander Sosedkin <monk@unboiled.info> | 2018-10-15 03:53:02 +0700 |
commit | 983563105004f4968b930689dc1a619087c2f56c (patch) | |
tree | 932fd30a148266e893ab53219f6be2853ce1bcc0 /pkgs/applications/misc/omegat.nix | |
parent | 766e3228c2fab89cf4fae3e93f4c0d89912b016e (diff) |
omegat: init at 4.1.5.2
OmegaT is a Computer-Assisted Translation tool written in Java. This derivation doesn't build it from source, but rather downloads a 'Cross-platform without JRE' zip file. I took the liberty of shorting the upstream version naming of "4.1.5 update 2 Beta" to a more concise "4.1.5.2".
Diffstat (limited to 'pkgs/applications/misc/omegat.nix')
-rw-r--r-- | pkgs/applications/misc/omegat.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/misc/omegat.nix b/pkgs/applications/misc/omegat.nix new file mode 100644 index 0000000000000..e6a6be88b6c02 --- /dev/null +++ b/pkgs/applications/misc/omegat.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, unzip, jdk, makeWrapper}: + +stdenv.mkDerivation rec { + version = "4.1.5.2"; + name = "omegat"; + + src = fetchurl { # their zip has repeated files or something, so no fetchzip + url = mirror://sourceforge/project/omegat/OmegaT%20-%20Latest/OmegaT%204.1.5%20update%202/OmegaT_4.1.5_02_Beta_Without_JRE.zip; + sha256 = "1mdnsvjgsccpd5xwpqzgva5jjp8yd1akq9aqpild4v6k70lqql2b"; + }; + + buildInputs = [ unzip makeWrapper ]; + + unpackCmd = "unzip -o $curSrc"; # tries to go interactive without -o + + installPhase = '' + mkdir -p $out/bin + cp -r lib docs images plugins scripts *.txt *.html OmegaT.jar $out/ + + cat > $out/bin/omegat <<EOF + #! $SHELL -e + CLASSPATH="$out/lib" + exec ${jdk}/bin/java -jar -Xmx1024M $out/OmegaT.jar "\$@" + EOF + chmod +x $out/bin/omegat + ''; + + meta = with stdenv.lib; { + description = "The free computer aided translation (CAT) tool for professionals"; + longDescription = '' + OmegaT is a free and open source multiplatform Computer Assisted Translation + tool with fuzzy matching, translation memory, keyword search, glossaries, and + translation leveraging into updated projects. + ''; + homepage = http://www.omegat.org/; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ t184256 ]; + platforms = [ "i686-linux" "x86_64-linux" ]; + }; +} |