From a5843d4903267884b5aecaace56c22c81dae0934 Mon Sep 17 00:00:00 2001 From: Guider-le-recit Date: Tue, 15 Apr 2025 18:09:46 +0200 Subject: [PATCH] libpinyin: replace db with kyotocabinet for reproducibility --- doc/release-notes/rl-2511.section.md | 2 ++ pkgs/by-name/li/libpinyin/package.nix | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/release-notes/rl-2511.section.md b/doc/release-notes/rl-2511.section.md index a62e6bc0c001..65987af6db14 100644 --- a/doc/release-notes/rl-2511.section.md +++ b/doc/release-notes/rl-2511.section.md @@ -106,6 +106,8 @@ - `rocmPackages.triton` has been removed in favor of `python3Packages.triton`. +- `linpinyin`, which is used for Chinese character input, has migrated from the unmaintained BDB database format to the newer KyotoCabinet database format. If you want to migrate your user input statistics you can consider using [bdbtokyotodb](https://codeberg.org/raboof/bdbtokyotodb). + - `go-mockery` has been updated to v3. For migration instructions see the [upstream documentation](https://vektra.github.io/mockery/latest/v3/). If v2 is still required `go-mockery_v2` has been added but will be removed on or before 2029-12-31 in-line with its [upstream support lifecycle](https://vektra.github.io/mockery/) - [private-gpt](https://github.com/zylon-ai/private-gpt) service has been removed by lack of maintenance upstream. diff --git a/pkgs/by-name/li/libpinyin/package.nix b/pkgs/by-name/li/libpinyin/package.nix index 895c9088f224..d82d0f5f52e9 100644 --- a/pkgs/by-name/li/libpinyin/package.nix +++ b/pkgs/by-name/li/libpinyin/package.nix @@ -5,7 +5,7 @@ fetchFromGitHub, autoreconfHook, glib, - db, + kyotocabinet, pkg-config, nix-update-script, }: @@ -40,7 +40,11 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ glib - db + kyotocabinet + ]; + + configureFlags = [ + "--with-dbm=KyotoCabinet" ]; passthru.updateScript = nix-update-script { };