2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
2022-04-27 09:35:20 +00:00
|
|
|
, glib
|
2020-09-25 04:45:31 +00:00
|
|
|
, gettext
|
|
|
|
, xorg
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-09-25 04:45:31 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, go
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-bamboo";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.7.8";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BambooEngine";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-H7me34KfhDD7BNEEKkhYXo9DLeclO7N19e961BOh1Ho=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-09-25 04:45:31 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
go
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
glib
|
|
|
|
gtk3
|
2020-09-25 04:45:31 +00:00
|
|
|
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"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|