2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, jdk, makeWrapper}:
|
2018-09-30 15:37:32 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2023-08-20 15:08:10 +00:00
|
|
|
version = "6.0.0";
|
2018-11-04 23:32:52 +00:00
|
|
|
pname = "omegat";
|
2018-09-30 15:37:32 +00:00
|
|
|
|
|
|
|
src = fetchurl { # their zip has repeated files or something, so no fetchzip
|
2023-08-20 15:08:10 +00:00
|
|
|
url = "mirror://sourceforge/project/omegat/OmegaT%20-%20Standard/OmegaT%206.0.0/OmegaT_6.0.0_Without_JRE.zip";
|
|
|
|
sha256 = "sha256-dsbT5iuZBudUL4Kw4rdvi4y98mcvnYNj9jRvC5wJoYI=";
|
2018-09-30 15:37:32 +00:00
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper unzip ];
|
2018-09-30 15:37:32 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-30 15:37:32 +00:00
|
|
|
description = "The free computer aided translation (CAT) tool for professionals";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "omegat";
|
2018-09-30 15:37:32 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.omegat.org/";
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2018-09-30 15:37:32 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ t184256 ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|