librime-lua: init at 0-unstable-2024-05-19

This commit is contained in:
Lin Jian 2024-07-13 21:21:38 +08:00
parent b729601a9e
commit 9178b8e4ee
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -0,0 +1,40 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
lua,
}:
stdenvNoCC.mkDerivation {
pname = "librime-lua";
version = "0-unstable-2024-05-19";
src = fetchFromGitHub {
owner = "hchunhui";
repo = "librime-lua";
rev = "7be6974b6d81c116bba39f6707dc640f6636fa4e";
hash = "sha256-jsrnAFE99d0U0LdddTL7G1p416qJfSNR935TZFH3Swk=";
};
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 ];
};
}