summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/ibus-engines
diff options
context:
space:
mode:
authorSuper Bo <supernbo@gmail.com>2020-05-30 15:32:05 +0700
committerSuper Bo <supernbo@gmail.com>2020-09-08 08:22:50 +0700
commitfdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee (patch)
tree5dd0f4156595e4eb98ec8a12d1051092bf599f69 /pkgs/tools/inputmethods/ibus-engines
parent2f5479d747c5094dd550e52ab37a4bceeee4376c (diff)
downloadnixpkgs-fdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee.tar
nixpkgs-fdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee.tar.gz
nixpkgs-fdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee.tar.bz2
nixpkgs-fdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee.tar.lz
nixpkgs-fdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee.tar.xz
nixpkgs-fdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee.tar.zst
nixpkgs-fdda893a8a5e4eee5f97c8bf0ca174a4d8bdd8ee.zip
ibus-bamboo: init at 0.6.6
Add IBus Bamboo engine for Vietnamese
Diffstat (limited to 'pkgs/tools/inputmethods/ibus-engines')
-rw-r--r--pkgs/tools/inputmethods/ibus-engines/ibus-bamboo/default.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/tools/inputmethods/ibus-engines/ibus-bamboo/default.nix b/pkgs/tools/inputmethods/ibus-engines/ibus-bamboo/default.nix
new file mode 100644
index 00000000000..b34206e6cf6
--- /dev/null
+++ b/pkgs/tools/inputmethods/ibus-engines/ibus-bamboo/default.nix
@@ -0,0 +1,55 @@
+{ stdenv
+, fetchFromGitHub
+, gettext
+, xorg
+, pkgconfig
+, wrapGAppsHook
+, ibus
+, gtk3
+, go
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ibus-bamboo";
+  version = "0.6.6";
+
+  src = fetchFromGitHub {
+    owner = "BambooEngine";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0bjcc2dm6c6s0v271nyslmwf5z0xxpcbvmk4lyirs48hc1bzv3n6";
+  };
+
+  nativeBuildInputs = [
+    gettext
+    pkgconfig
+    wrapGAppsHook
+    go
+  ];
+
+  buildInputs = [
+    xorg.libX11
+    xorg.xorgproto
+    xorg.libXtst
+    xorg.libXi
+  ];
+
+  preConfigure = ''
+    export GOCACHE="$TMPDIR/go-cache"
+    sed -i "s,/usr,$out," bamboo.xml
+  '';
+
+  makeFlags = [
+    "PREFIX=${placeholder "out"}"
+  ];
+
+
+  meta = with stdenv.lib; {
+    isIbusEngine = true;
+    description = "A Vietnamese IME for IBus";
+    homepage = "https://github.com/BambooEngine/ibus-bamboo";
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ superbo ];
+  };
+}