depot/third_party/nixpkgs/pkgs/by-name/li/librime-lua/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

40 lines
920 B
Nix

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