about summary refs log tree commit diff
path: root/pkgs/servers/search
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2024-01-19 09:02:13 +0100
committerJonas Heinrich <onny@project-insanity.org>2024-01-19 10:52:06 +0100
commit8ef7c0b86ad76d531c97209d2f0b9e49a3450352 (patch)
treed5898432ff0631cf6c6471b13e22bd4868434afa /pkgs/servers/search
parentb956688fd10ea185762356ff5f5c7bec935b20de (diff)
manticoresearch: 6.2.0 -> 6.2.12
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r--pkgs/servers/search/manticoresearch/default.nix115
1 files changed, 0 insertions, 115 deletions
diff --git a/pkgs/servers/search/manticoresearch/default.nix b/pkgs/servers/search/manticoresearch/default.nix
deleted file mode 100644
index d7fe93a214b13..0000000000000
--- a/pkgs/servers/search/manticoresearch/default.nix
+++ /dev/null
@@ -1,115 +0,0 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, bison
-, cmake
-, flex
-, pkg-config
-, boost
-, icu
-, libstemmer
-, mariadb-connector-c
-, re2
-, nlohmann_json
-, testers
-, manticoresearch
-}:
-
-let
-  columnar = stdenv.mkDerivation (finalAttrs: {
-    pname = "columnar";
-    version = "c21-s10"; # see NEED_COLUMNAR_API/NEED_SECONDARY_API in Manticore's cmake/GetColumnar.cmake
-    src = fetchFromGitHub {
-      owner = "manticoresoftware";
-      repo = "columnar";
-      rev = finalAttrs.version;
-      hash = "sha256-TGFGFfoyHnPSr2U/9dpqFLUN3Dt2jDQrTF/xxDY4pdE=";
-    };
-    nativeBuildInputs = [ cmake ];
-    cmakeFlags = [ "-DAPI_ONLY=ON" ];
-    meta = {
-      description = "A column-oriented storage and secondary indexing library";
-      homepage = "https://github.com/manticoresoftware/columnar/";
-      license = lib.licenses.asl20;
-      platforms = lib.platforms.all;
-    };
-  });
-  uni-algo = stdenv.mkDerivation (finalAttrs: {
-    pname = "uni-algo";
-    version = "0.7.2";
-    src = fetchFromGitHub {
-      owner = "manticoresoftware";
-      repo = "uni-algo";
-      rev = "v${finalAttrs.version}";
-      hash = "sha256-+V9w4UJ+3KsyZUYht6OEzms60mBHd8FewVc7f21Z9ww=";
-    };
-    nativeBuildInputs = [ cmake ];
-    meta = {
-      description = "Unicode Algorithms Implementation for C/C++";
-      homepage = "https://github.com/manticoresoftware/uni-algo";
-      license = lib.licenses.mit;
-      platforms = lib.platforms.all;
-    };
-  });
-in
-stdenv.mkDerivation (finalAttrs: {
-  pname = "manticoresearch";
-  version = "6.2.0";
-
-  src = fetchFromGitHub {
-    owner = "manticoresoftware";
-    repo = "manticoresearch";
-    rev = finalAttrs.version;
-    hash = "sha256-KmBIQa5C71Y/1oa3XiPfmb941QDU2rWo7Bl5QlAo+yA=";
-  };
-
-  nativeBuildInputs = [
-    bison
-    cmake
-    flex
-    pkg-config
-  ];
-
-  buildInputs = [
-    boost
-    columnar
-    icu.dev
-    libstemmer
-    mariadb-connector-c
-    nlohmann_json
-    uni-algo
-    re2
-  ];
-
-  postPatch = ''
-    sed -i 's/set ( Boost_USE_STATIC_LIBS ON )/set ( Boost_USE_STATIC_LIBS OFF )/' src/CMakeLists.txt
-
-    # supply our own packages rather than letting manticore download dependencies during build
-    sed -i 's/^with_get/with_menu/' CMakeLists.txt
-    sed -i 's/get_dep \( nlohmann_json .* \)/find_package(nlohmann_json)/' CMakeLists.txt
-    sed -i 's/get_dep \( uni-algo .* \)/find_package(uni-algo)/' CMakeLists.txt
-  '';
-
-  cmakeFlags = [
-    "-DWITH_GALERA=0"
-    "-DWITH_MYSQL=1"
-    "-DMYSQL_INCLUDE_DIR=${mariadb-connector-c.dev}/include/mariadb"
-    "-DMYSQL_LIB=${mariadb-connector-c.out}/lib/mariadb/libmysqlclient.a"
-  ];
-
-  passthru.tests.version = testers.testVersion {
-    inherit (finalAttrs) version;
-    package = manticoresearch;
-    command = "searchd --version";
-  };
-
-  meta = {
-    description = "Easy to use open source fast database for search";
-    homepage = "https://manticoresearch.com";
-    changelog = "https://github.com/manticoresoftware/manticoresearch/releases/tag/${finalAttrs.version}";
-    license = lib.licenses.gpl2;
-    mainProgram = "searchd";
-    maintainers = [ lib.maintainers.jdelStrother ];
-    platforms = lib.platforms.all;
-  };
-})