Skip to content

Commit

Permalink
Merge pull request NixOS#326836 from linj-fork/pr/librime-lua
Browse files Browse the repository at this point in the history
librime-lua: init at 0-unstable-2024-05-19
  • Loading branch information
jian-lin authored Jul 15, 2024
2 parents 164df54 + 2bbfe90 commit 4530ffc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions pkgs/by-name/li/librime-lua/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/libraries/librime/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
yaml-cpp, gtest, capnproto, pkg-config, plugins ? [ ] }:
yaml-cpp, gtest, capnproto, pkg-config, librime-lua, plugins ? [ librime-lua ] }:

let
copySinglePlugin = plug: "cp -r ${plug} plugins/${plug.name}";
Expand Down

0 comments on commit 4530ffc

Please sign in to comment.