159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
40 lines
920 B
Nix
40 lines
920 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
lua,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "librime-lua";
|
|
version = "0-unstable-2024-08-19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hchunhui";
|
|
repo = "librime-lua";
|
|
rev = "fa6563cf7b40f3bfbf09e856420bff8de6820558";
|
|
hash = "sha256-jv5TZSp36UGbaRiXv9iUNLu3DE/yrWANQhY6TWLPD8c=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|