19 columnar = stdenv.mkDerivation (finalAttrs: {
21 version = "c21-s10"; # see NEED_COLUMNAR_API/NEED_SECONDARY_API in Manticore's cmake/GetColumnar.cmake
22 src = fetchFromGitHub {
23 owner = "manticoresoftware";
25 rev = finalAttrs.version;
26 hash = "sha256-TGFGFfoyHnPSr2U/9dpqFLUN3Dt2jDQrTF/xxDY4pdE=";
28 nativeBuildInputs = [ cmake ];
29 cmakeFlags = [ "-DAPI_ONLY=ON" ];
31 description = "Column-oriented storage and secondary indexing library";
32 homepage = "https://github.com/manticoresoftware/columnar/";
33 license = lib.licenses.asl20;
34 platforms = lib.platforms.all;
37 uni-algo = stdenv.mkDerivation (finalAttrs: {
40 src = fetchFromGitHub {
41 owner = "manticoresoftware";
43 rev = "v${finalAttrs.version}";
44 hash = "sha256-+V9w4UJ+3KsyZUYht6OEzms60mBHd8FewVc7f21Z9ww=";
46 nativeBuildInputs = [ cmake ];
48 description = "Unicode Algorithms Implementation for C/C++";
49 homepage = "https://github.com/manticoresoftware/uni-algo";
50 license = lib.licenses.mit;
51 platforms = lib.platforms.all;
55 stdenv.mkDerivation (finalAttrs: {
56 pname = "manticoresearch";
59 src = fetchFromGitHub {
60 owner = "manticoresoftware";
61 repo = "manticoresearch";
62 rev = "refs/tags/${finalAttrs.version}";
63 hash = "sha256-UD/r7rlJ5mR3wg4doKT/nTwTWzlulngUjOPNEjmykB8=";
85 sed -i 's/set ( Boost_USE_STATIC_LIBS ON )/set ( Boost_USE_STATIC_LIBS OFF )/' src/CMakeLists.txt
87 # supply our own packages rather than letting manticore download dependencies during build
88 sed -i 's/^with_get/with_menu/' CMakeLists.txt
89 sed -i 's/get_dep \( nlohmann_json .* \)/find_package(nlohmann_json)/' CMakeLists.txt
90 sed -i 's/get_dep \( uni-algo .* \)/find_package(uni-algo)/' CMakeLists.txt
96 "-DMYSQL_INCLUDE_DIR=${mariadb-connector-c.dev}/include/mariadb"
97 "-DMYSQL_LIB=${mariadb-connector-c.out}/lib/mariadb/libmysqlclient.a"
98 "-DCONFDIR=${placeholder "out"}/etc"
99 "-DLOGDIR=/var/lib/manticoresearch/log"
100 "-DRUNDIR=/var/run/manticoresearch"
104 mkdir -p $out/lib/systemd/system
105 cp ${finalAttrs.src}/dist/deb/manticore.service.in $out/lib/systemd/system/manticore.service
106 substituteInPlace $out/lib/systemd/system/manticore.service \
107 --replace "@CMAKE_INSTALL_FULL_RUNSTATEDIR@" "/var/lib/manticore" \
108 --replace "@CMAKE_INSTALL_FULL_BINDIR@" "$out/bin" \
109 --replace "@CMAKE_INSTALL_FULL_SYSCONFDIR@" "$out/etc"
112 passthru.tests.version = testers.testVersion {
113 inherit (finalAttrs) version;
114 package = manticoresearch;
115 command = "searchd --version";
119 description = "Easy to use open source fast database for search";
120 homepage = "https://manticoresearch.com";
121 changelog = "https://github.com/manticoresoftware/manticoresearch/releases/tag/${finalAttrs.version}";
122 license = licenses.gpl2;
123 mainProgram = "searchd";
124 maintainers = [ maintainers.jdelStrother ];
125 platforms = platforms.all;