nixpkgs/pkgs/by-name/li/libskk/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

82 lines
2.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
libtool,
gettext,
pkg-config,
vala,
gnome-common,
gobject-introspection,
libgee,
json-glib,
skkDictionaries,
libxkbcommon,
}:
stdenv.mkDerivation rec {
pname = "libskk";
version = "1.0.5";
src = fetchFromGitHub {
owner = "ueno";
repo = "libskk";
rev = version;
sha256 = "0y279pcgs3jrsi9vzx086xhz9jbz23dqqijp4agygc9ackp9sxy5";
};
patches = [
# fix parse error in default.json
# https://github.com/ueno/libskk/pull/90
(fetchpatch {
url = "https://github.com/ueno/libskk/commit/2382ebedc8dca88e745d223ad7badb8b73bbb0de.diff";
hash = "sha256-e1bKVteNjqmr40XI82Qar63LXPWYIfnUVlo5zQSkPNw=";
})
];
buildInputs = [ libxkbcommon ];
nativeBuildInputs = [
vala
gnome-common
gobject-introspection
libtool
gettext
pkg-config
];
propagatedBuildInputs = [
libgee
json-glib
];
preConfigure = ''
./autogen.sh
'';
# link SKK-JISYO.L from skkdicts for the bundled tool `skk`
preInstall = ''
dictDir=$out/share/skk
mkdir -p $dictDir
ln -s ${skkDictionaries.l}/share/skk/SKK-JISYO.L $dictDir/
'';
enableParallelBuilding = true;
meta = {
description = "Library to deal with Japanese kana-to-kanji conversion method";
mainProgram = "skk";
longDescription = ''
Libskk is a library that implements basic features of SKK including:
new word registration, completion, numeric conversion, abbrev mode, kuten input,
hankaku-katakana input, Lisp expression evaluation (concat only), and re-conversion.
It also supports various typing rules including: romaji-to-kana, AZIK, TUT-Code, and NICOLA,
as well as various dictionary types including: file dictionary (such as SKK-JISYO.[SML]),
user dictionary, skkserv, and CDB format dictionary.
'';
homepage = "https://github.com/ueno/libskk";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ yuriaisaka ];
platforms = lib.platforms.linux;
};
}