Merge pull request #328396 from azuwis/rime
This commit is contained in:
commit
584ece9f54
36
pkgs/by-name/li/librime-octagram/package.nix
Normal file
36
pkgs/by-name/li/librime-octagram/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user