1 { lib, stdenv, fetchurl, unzip, jdk, makeWrapper}:
7 src = fetchurl { # their zip has repeated files or something, so no fetchzip
8 url = "mirror://sourceforge/project/omegat/OmegaT%20-%20Standard/OmegaT%206.0.1/OmegaT_6.0.1_Without_JRE.zip";
9 sha256 = "sha256-Rj50bzT8k7+GWb0p/ma+zy+PzkF7tB6iV4F4UVAImJg=";
12 nativeBuildInputs = [ makeWrapper unzip ];
14 unpackCmd = "unzip -o $curSrc"; # tries to go interactive without -o
18 cp -r lib docs images plugins scripts *.txt *.html OmegaT.jar $out/
20 cat > $out/bin/omegat <<EOF
23 exec ${jdk}/bin/java -jar -Xmx1024M $out/OmegaT.jar "\$@"
25 chmod +x $out/bin/omegat
29 description = "Free computer aided translation (CAT) tool for professionals";
30 mainProgram = "omegat";
32 OmegaT is a free and open source multiplatform Computer Assisted Translation
33 tool with fuzzy matching, translation memory, keyword search, glossaries, and
34 translation leveraging into updated projects.
36 homepage = "http://www.omegat.org/";
37 sourceProvenance = with sourceTypes; [ binaryBytecode ];
38 license = licenses.gpl3Plus;
39 maintainers = with maintainers; [ t184256 ];
40 platforms = [ "i686-linux" "x86_64-linux" ];