2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, xorg
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-09-25 04:45:31 +00:00
|
|
|
, go
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-bamboo";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.8.4-rc6";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BambooEngine";
|
|
|
|
repo = pname;
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "v" + lib.toUpper version;
|
2024-07-01 15:47:52 +00:00
|
|
|
sha256 = "sha256-8eBrgUlzrfQkgzr0/Nz/0FQ98UBdV0GQcZhJVbmyOg0=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-09-25 04:45:31 +00:00
|
|
|
go
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.libXtst
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export GOCACHE="$TMPDIR/go-cache"
|
2024-06-05 15:53:02 +00:00
|
|
|
sed -i "s,/usr,$out," data/bamboo.xml
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Vietnamese IME for IBus";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/BambooEngine/ibus-bamboo";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ astronaut0212 ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|