5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
57 lines
968 B
Nix
57 lines
968 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, glib
|
|
, gettext
|
|
, xorg
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, gtk3
|
|
, go
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ibus-bamboo";
|
|
version = "0.7.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BambooEngine";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-H7me34KfhDD7BNEEKkhYXo9DLeclO7N19e961BOh1Ho=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
pkg-config
|
|
wrapGAppsHook
|
|
go
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
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 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 ];
|
|
};
|
|
}
|