2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
|
|
|
unstableGitUpdater,
|
|
|
|
lua,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "librime-lua";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0-unstable-2024-08-19";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hchunhui";
|
|
|
|
repo = "librime-lua";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "fa6563cf7b40f3bfbf09e856420bff8de6820558";
|
|
|
|
hash = "sha256-jv5TZSp36UGbaRiXv9iUNLu3DE/yrWANQhY6TWLPD8c=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lua ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
cp --archive --verbose src/ $out
|
|
|
|
install --mode=644 --verbose --target-directory=$out CMakeLists.txt LICENSE README.md
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Extending RIME with Lua scripts";
|
|
|
|
homepage = "https://github.com/hchunhui/librime-lua";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ linj xddxdd ];
|
|
|
|
};
|
|
|
|
}
|