Merge pull request #47559 from t184256/add-omegat
omegat: init at 4.1.5.2
This commit is contained in:
commit
67a99a8bf6
40
pkgs/applications/misc/omegat.nix
Normal file
40
pkgs/applications/misc/omegat.nix
Normal file
@ -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" ];
|
||||
};
|
||||
}
|
@ -18139,6 +18139,8 @@ with pkgs;
|
||||
|
||||
ogmtools = callPackage ../applications/video/ogmtools { };
|
||||
|
||||
omegat = callPackage ../applications/misc/omegat.nix { };
|
||||
|
||||
omxplayer = callPackage ../applications/video/omxplayer { };
|
||||
|
||||
openbox = callPackage ../applications/window-managers/openbox { };
|
||||
|
Loading…
Reference in New Issue
Block a user