2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
|
|
|
, xorg
|
|
|
|
, pkgconfig
|
|
|
|
, wrapGAppsHook
|
|
|
|
, ibus
|
|
|
|
, gtk3
|
|
|
|
, go
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-bamboo";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.6.8";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BambooEngine";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "17zgxqlsjkqyjywynqzmymw310aypcsjdrwnc7hx7v7xwal8iwjk";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|