1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 extra-cmake-modules,
7 fcitx5,
8 gettext,
9 go,
10}:
11
12stdenv.mkDerivation (finalAttrs: {
13 pname = "fcitx5-bamboo";
14 version = "1.0.7";
15
16 src = fetchFromGitHub {
17 owner = "fcitx";
18 repo = "fcitx5-bamboo";
19 rev = finalAttrs.version;
20 hash = "sha256-yvyJHIXUYpOIeiSQasSRKTbN4Z0BAjohz8VlZKqMg0Q=";
21 fetchSubmodules = true;
22 };
23
24 strictDeps = true;
25
26 nativeBuildInputs = [
27 cmake
28 extra-cmake-modules
29 gettext
30 go
31 ];
32
33 buildInputs = [
34 fcitx5
35 ];
36
37 preConfigure = ''
38 export GOCACHE=$TMPDIR/go-cache
39 '';
40
41 meta = {
42 description = "Vietnamese input method engine support for Fcitx";
43 homepage = "https://github.com/fcitx/fcitx5-bamboo";
44 license = lib.licenses.lgpl21Plus;
45 maintainers = with lib.maintainers; [ ];
46 platforms = lib.platforms.linux;
47 };
48})