1 Commits

Author SHA1 Message Date
oysteikt 41d990a447 WIP
Build and test / build (push) Failing after 17s
2026-05-06 02:00:10 +09:00
3 changed files with 62 additions and 0 deletions
+2
View File
@@ -116,6 +116,8 @@
ln -s ${src} $out
'';
fts5-icu-tokenizer = pkgs.callPackage ./nix/fts5-icu-tokenizer/package.nix { };
inherit (datasources.packages.${system}) jmdict radkfile kanjidic2;
database-tool = pkgs.callPackage ./nix/database_tool.nix {
@@ -0,0 +1,20 @@
diff --git i/CMakeLists.txt w/CMakeLists.txt
index 9d99543..11ce4a4 100644
--- i/CMakeLists.txt
+++ w/CMakeLists.txt
@@ -131,6 +131,15 @@ if(NOT SQLite3_FOUND)
endif()
endif()
+if(SQLite3_FOUND AND NOT TARGET SQLite3::SQLite3)
+ add_library(SQLite3::SQLite3 UNKNOWN IMPORTED)
+
+ set_target_properties(SQLite3::SQLite3 PROPERTIES
+ IMPORTED_LOCATION "${SQLite3_LIBRARIES}"
+ INTERFACE_INCLUDE_DIRECTORIES "${SQLite3_INCLUDE_DIRS}"
+ )
+endif()
+
# --- Configure the Library ---
# Select source files based on API version
+40
View File
@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchFromSourcehut,
cmake,
pkg-config,
icu,
sqlite,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fts5-icu-tokenizer";
version = "5.5";
src = fetchFromSourcehut {
vc = "hg";
owner = "~cwt";
repo = "fts5-icu-tokenizer";
rev = "v${finalAttrs.version}";
hash = "sha256-7Klsu9d1sY+W0buo6kwYdCyDA/u2dBTgu6WuttomTBo=";
};
patches = [
./0001-provide-sqlite-externally.patch
];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
icu
sqlite
];
cmakeFlags = [
(lib.cmakeFeature "LOCALE" "ja")
(lib.cmakeFeature "API_VERSION" "v2")
];
})