depot/pkgs/by-name/li/librime-lua/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

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 ];
};
}