2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, unzip, jdk, makeWrapper}:
|
2018-09-30 17:37:32 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-22 22:35:00 +02:00
|
|
|
version = "4.3.0";
|
2018-11-05 00:32:52 +01:00
|
|
|
pname = "omegat";
|
2018-09-30 17:37:32 +02:00
|
|
|
|
|
|
|
src = fetchurl { # their zip has repeated files or something, so no fetchzip
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "mirror://sourceforge/project/omegat/OmegaT%20-%20Standard/OmegaT%204.3.0/OmegaT_4.3.0_Without_JRE.zip";
|
2019-08-22 22:35:00 +02:00
|
|
|
sha256 = "0axz7r30p34z5hgvdglznc82g7yvm3g56dv5190jixskx6ba58rs";
|
2018-09-30 17:37:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-09-30 17:37:32 +02:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.omegat.org/";
|
2018-09-30 17:37:32 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ t184256 ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|