fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
48 lines
893 B
Nix
48 lines
893 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, xorg
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, go
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ibus-bamboo";
|
|
version = "0.8.4-rc3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BambooEngine";
|
|
repo = pname;
|
|
rev = "v" + lib.toUpper version;
|
|
sha256 = "sha256-P09gXuxbD4RJcXvgnRyFgSxt6NEXfpXJDPzl50ZtAxM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
go
|
|
];
|
|
|
|
buildInputs = [
|
|
xorg.libXtst
|
|
];
|
|
|
|
preConfigure = ''
|
|
export GOCACHE="$TMPDIR/go-cache"
|
|
sed -i "s,/usr,$out," data/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; [ astronaut0212 ];
|
|
};
|
|
}
|