Merge pull request #186112 from jdelStrother/manticore

manticoresearch: init at 5.0.3

authored by Jonas Heinrich and committed by GitHub 93a2ebf4 53ebe3ac

+77
+6
maintainers/maintainer-list.nix
··· 6227 githubId = 117874; 6228 name = "Jeroen de Haas"; 6229 }; 6230 jdreaver = { 6231 email = "johndreaver@gmail.com"; 6232 github = "jdreaver";
··· 6227 githubId = 117874; 6228 name = "Jeroen de Haas"; 6229 }; 6230 + jdelStrother = { 6231 + email = "me@delstrother.com"; 6232 + github = "jdelStrother"; 6233 + githubId = 2377; 6234 + name = "Jonathan del Strother"; 6235 + }; 6236 jdreaver = { 6237 email = "johndreaver@gmail.com"; 6238 github = "jdreaver";
+70
pkgs/servers/search/manticoresearch/default.nix
···
··· 1 + { lib, stdenv, fetchFromGitHub, fetchurl 2 + , bison, cmake, flex, pkg-config 3 + , boost, icu, libstemmer, mariadb-connector-c, re2 4 + }: 5 + let 6 + columnar = stdenv.mkDerivation rec { 7 + pname = "columnar"; 8 + version = "c16-s5"; # see NEED_COLUMNAR_API/NEED_SECONDARY_API in Manticore's GetColumnar.cmake 9 + src = fetchFromGitHub { 10 + owner = "manticoresoftware"; 11 + repo = "columnar"; 12 + rev = version; 13 + sha256 = "sha256-iHB82FeA0rq9eRuDzY+AT/MiaRIGETsnkNPCqKRXgq8="; 14 + }; 15 + nativeBuildInputs = [ cmake ]; 16 + cmakeFlags = [ "-DAPI_ONLY=ON" ]; 17 + meta = { 18 + description = "A column-oriented storage and secondary indexing library"; 19 + homepage = "https://github.com/manticoresoftware/columnar/"; 20 + license = lib.licenses.asl20; 21 + platforms = lib.platforms.all; 22 + }; 23 + }; 24 + in 25 + stdenv.mkDerivation rec { 26 + pname = "manticoresearch"; 27 + version = "5.0.3"; 28 + 29 + src = fetchFromGitHub { 30 + owner = "manticoresoftware"; 31 + repo = "manticoresearch"; 32 + rev = version; 33 + sha256 = "sha256-samZYwDYgI9jQ7jcoMlpxulSFwmqyt5bkxG+WZ9eXuk="; 34 + }; 35 + 36 + nativeBuildInputs = [ 37 + bison 38 + cmake 39 + flex 40 + pkg-config 41 + ]; 42 + 43 + buildInputs = [ 44 + boost 45 + columnar 46 + icu.dev 47 + libstemmer 48 + mariadb-connector-c 49 + re2 50 + ]; 51 + 52 + postPatch = '' 53 + sed -i 's/set ( Boost_USE_STATIC_LIBS ON )/set ( Boost_USE_STATIC_LIBS OFF )/' src/CMakeLists.txt 54 + 55 + # supply our own packages rather than letting manticore download dependencies during build 56 + sed -i 's/^with_get/with_menu/' CMakeLists.txt 57 + ''; 58 + 59 + cmakeFlags = [ 60 + "-DWITH_GALERA=0" 61 + ]; 62 + 63 + meta = with lib; { 64 + description = "Easy to use open source fast database for search"; 65 + homepage = "https://manticoresearch.com"; 66 + license = licenses.gpl2; 67 + maintainers = with maintainers; [ jdelStrother ]; 68 + platforms = platforms.all; 69 + }; 70 + }
+1
pkgs/top-level/all-packages.nix
··· 21048 boost = boost175; 21049 }; 21050 21051 21052 marisa = callPackage ../development/libraries/marisa {}; 21053
··· 21048 boost = boost175; 21049 }; 21050 21051 + manticoresearch = callPackage ../servers/search/manticoresearch { }; 21052 21053 marisa = callPackage ../development/libraries/marisa {}; 21054