diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-10-27 16:16:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 16:16:56 +0200 |
commit | 93a2ebf4cdf544d4e9ab7697f9fcd4e9410ba9b9 (patch) | |
tree | 4ffcac94cb152d3f8dfa9e9fdd06ce41669d5746 /pkgs/servers/search | |
parent | 53ebe3accc851ac22c1bd1b37cfe78082bef4956 (diff) | |
parent | 02a56e375f070dcb1ec8bdbc6cd84a59fa19db05 (diff) |
Merge pull request #186112 from jdelStrother/manticore
manticoresearch: init at 5.0.3
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r-- | pkgs/servers/search/manticoresearch/default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/servers/search/manticoresearch/default.nix b/pkgs/servers/search/manticoresearch/default.nix new file mode 100644 index 0000000000000..a2d77d03cc5c8 --- /dev/null +++ b/pkgs/servers/search/manticoresearch/default.nix @@ -0,0 +1,70 @@ +{ lib, stdenv, fetchFromGitHub, fetchurl +, bison, cmake, flex, pkg-config +, boost, icu, libstemmer, mariadb-connector-c, re2 +}: +let + columnar = stdenv.mkDerivation rec { + pname = "columnar"; + version = "c16-s5"; # see NEED_COLUMNAR_API/NEED_SECONDARY_API in Manticore's GetColumnar.cmake + src = fetchFromGitHub { + owner = "manticoresoftware"; + repo = "columnar"; + rev = version; + sha256 = "sha256-iHB82FeA0rq9eRuDzY+AT/MiaRIGETsnkNPCqKRXgq8="; + }; + 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; + }; + }; +in +stdenv.mkDerivation rec { + pname = "manticoresearch"; + version = "5.0.3"; + + src = fetchFromGitHub { + owner = "manticoresoftware"; + repo = "manticoresearch"; + rev = version; + sha256 = "sha256-samZYwDYgI9jQ7jcoMlpxulSFwmqyt5bkxG+WZ9eXuk="; + }; + + nativeBuildInputs = [ + bison + cmake + flex + pkg-config + ]; + + buildInputs = [ + boost + columnar + icu.dev + libstemmer + mariadb-connector-c + 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 + ''; + + cmakeFlags = [ + "-DWITH_GALERA=0" + ]; + + meta = with lib; { + description = "Easy to use open source fast database for search"; + homepage = "https://manticoresearch.com"; + license = licenses.gpl2; + maintainers = with maintainers; [ jdelStrother ]; + platforms = platforms.all; + }; +} |