nixpkgs/pkgs/by-name/li/librime-lua/package.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 ];
};
}