python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libkkc / package.nix
bloba329b39739de8b7708c147de557a7ae15f962692
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6   vala,
7   gobject-introspection,
8   intltool,
9   python3,
10   glib,
11   pkg-config,
12   libgee,
13   json-glib,
14   marisa,
15   libkkc-data,
18 stdenv.mkDerivation rec {
19   pname = "libkkc";
20   version = "0.3.5";
22   src = fetchurl {
23     url = "${meta.homepage}/releases/download/v${version}/${pname}-${version}.tar.gz";
24     sha256 = "89b07b042dae5726d306aaa1296d1695cb75c4516f4b4879bc3781fe52f62aef";
25   };
27   patches = [
28     (fetchpatch {
29       name = "build-python3.patch";
30       url = "https://github.com/ueno/libkkc/commit/ba1c1bd3eb86d887fc3689c3142732658071b5f7.patch";
31       hash = "sha256-4IVpcJJFrxmxJGNiRHteleAa6trOwbvMHRTE/qyjOPY=";
32     })
33   ];
35   nativeBuildInputs = [
36     vala
37     gobject-introspection
38     python3
39     python3.pkgs.marisa
40     intltool
41     glib
42     pkg-config
43   ];
45   buildInputs = [
46     marisa
47     libkkc-data
48   ];
49   enableParallelBuilding = true;
51   propagatedBuildInputs = [
52     libgee
53     json-glib
54   ];
56   postInstall = ''
57     ln -s ${libkkc-data}/lib/libkkc/models $out/share/libkkc/models
58   '';
60   meta = with lib; {
61     description = "Japanese Kana Kanji conversion input method library";
62     homepage = "https://github.com/ueno/libkkc";
63     license = licenses.gpl3Plus;
64     maintainers = with maintainers; [ vanzef ];
65     platforms = platforms.linux;
66   };