commit db3aba085a3a31ee403a5ed9a60e94ba2e05beb3
parent 22b30ab235ecaaa1532072ba44c49dd7cbc7da99
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Thu, 12 Mar 2020 09:52:48 +0300
Add i18n-editor
Diffstat:
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -48,6 +48,7 @@ lib.makeScope newScope (self: with self; {
inherit sources;
};
hiblovgpsmap = callPackage ./data/maps/hiblovgpsmap { };
+ i18n-editor = callPackage ./tools/i18n-editor { };
ish = callPackage ./tools/networking/ish { };
libshell = callPackage ./development/libraries/libshell { };
macmillan = callPackage ./data/dicts/macmillan { };
diff --git a/pkgs/tools/i18n-editor/default.nix b/pkgs/tools/i18n-editor/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchzip, jdk11, makeWrapper }:
+
+stdenv.mkDerivation rec {
+ pname = "i18n-editor";
+ version = "2.0.0-beta.1";
+
+ src = fetchzip {
+ url = "https://github.com/jcbvm/i18n-editor/releases/download/${version}/${pname}-${version}.zip";
+ sha256 = "0hkxgmna22qwm72rwaj4l1rxnx1x93z4v843sz58fdfiqmiqjfy3";
+ stripRoot = false;
+ };
+
+ buildInputs = [ jdk11 makeWrapper ];
+
+ installPhase = ''
+ install -dm755 $out/bin
+ install -Dm644 i18n-editor.jar -t $out/share/java
+
+ makeWrapper ${jdk11}/bin/java $out/bin/i18n-editor \
+ --add-flags "-jar $out/share/java/i18n-editor.jar"
+ '';
+
+ meta = with stdenv.lib; {
+ description = "GUI for editing your i18n translation files";
+ homepage = "https://github.com/jcbvm/i18n-editor";
+ license = licenses.mit;
+ maintainers = with maintainers; [ sikmir ];
+ platforms = platforms.unix;
+ skip.ci = true;
+ };
+}