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.0/OmegaT_6.0.0_Without_JRE.zip";
9 sha256 = "sha256-dsbT5iuZBudUL4Kw4rdvi4y98mcvnYNj9jRvC5wJoYI=";
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 = "The free computer aided translation (CAT) tool for professionals";
31 OmegaT is a free and open source multiplatform Computer Assisted Translation
32 tool with fuzzy matching, translation memory, keyword search, glossaries, and
33 translation leveraging into updated projects.
35 homepage = "http://www.omegat.org/";
36 sourceProvenance = with sourceTypes; [ binaryBytecode ];
37 license = licenses.gpl3Plus;
38 maintainers = with maintainers; [ t184256 ];
39 platforms = [ "i686-linux" "x86_64-linux" ];