Merge pull request #328396 from azuwis/rime

This commit is contained in:
Sandro 2024-07-27 00:01:52 +02:00 committed by GitHub
commit 584ece9f54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,36 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:
stdenvNoCC.mkDerivation {
pname = "librime-octagram";
version = "0-unstable-2024-02-05";
src = fetchFromGitHub {
owner = "lotem";
repo = "librime-octagram";
rev = "bd12863f45fbbd5c7db06d5ec8be8987b10253bf";
hash = "sha256-77g72tee4ahNcu3hfW1Okqr9z8Y6WrPgUhw316O72Ng=";
};
installPhase = ''
runHook preInstall
mkdir $out
cp --archive --verbose * $out
runHook postInstall
'';
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "RIME essay grammar plugin";
homepage = "https://github.com/lotem/librime-octagram";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ azuwis ];
};
}

View File

@ -1,5 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
yaml-cpp, gtest, capnproto, pkg-config, librime-lua, plugins ? [ librime-lua ] }:
yaml-cpp, gtest, capnproto, pkg-config, librime-lua, librime-octagram,
plugins ? [ librime-lua librime-octagram ] }:
let
copySinglePlugin = plug: "cp -r ${plug} plugins/${plug.name}";