diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-07-29 12:56:23 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-07-29 12:56:23 +0200 |
commit | 2670961a5485a9f73f43165e6e8a2496c932dfec (patch) | |
tree | 3c8bf2587f574713f174eac5d11d1b7e06243be0 /pkgs/servers/search | |
parent | 2c821a977e988cbec52560f9fb73d216bfc5b83f (diff) |
mantiscoresearch: use `finalAttrs` pattern
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r-- | pkgs/servers/search/manticoresearch/default.nix | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/pkgs/servers/search/manticoresearch/default.nix b/pkgs/servers/search/manticoresearch/default.nix index e1bbcd3538cee..442ebe751b2dd 100644 --- a/pkgs/servers/search/manticoresearch/default.nix +++ b/pkgs/servers/search/manticoresearch/default.nix @@ -1,17 +1,27 @@ -{ lib, stdenv, fetchFromGitHub, fetchurl -, bison, cmake, flex, pkg-config -, boost, icu, libstemmer, mariadb-connector-c, re2 +{ lib +, stdenv +, fetchFromGitHub +, bison +, cmake +, flex +, pkg-config +, boost +, icu +, libstemmer +, mariadb-connector-c +, re2 , nlohmann_json }: + let - columnar = stdenv.mkDerivation rec { + columnar = stdenv.mkDerivation (finalAttrs: { pname = "columnar"; version = "c18-s6"; # see NEED_COLUMNAR_API/NEED_SECONDARY_API in Manticore's GetColumnar.cmake src = fetchFromGitHub { owner = "manticoresoftware"; repo = "columnar"; - rev = version; - sha256 = "sha256-/HGh1Wktb65oXKCjGxMl+8kNwEEfPzGT4UxGoGS4+8c="; + rev = finalAttrs.version; + hash = "sha256-/HGh1Wktb65oXKCjGxMl+8kNwEEfPzGT4UxGoGS4+8c="; }; nativeBuildInputs = [ cmake ]; cmakeFlags = [ "-DAPI_ONLY=ON" ]; @@ -21,17 +31,17 @@ let license = lib.licenses.asl20; platforms = lib.platforms.all; }; - }; + }); in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "manticoresearch"; version = "6.0.4"; src = fetchFromGitHub { owner = "manticoresoftware"; repo = "manticoresearch"; - rev = version; - sha256 = "sha256-enSK3hlGUtrPVA/qF/AFiDJN8CbaTHCzYadBorZLE+c="; + rev = finalAttrs.version; + hash = "sha256-enSK3hlGUtrPVA/qF/AFiDJN8CbaTHCzYadBorZLE+c="; }; nativeBuildInputs = [ @@ -66,12 +76,12 @@ stdenv.mkDerivation rec { "-DMYSQL_LIB=${mariadb-connector-c.out}/lib/mariadb/libmysqlclient.a" ]; - meta = with lib; { + meta = { description = "Easy to use open source fast database for search"; homepage = "https://manticoresearch.com"; - license = licenses.gpl2; + license = lib.licenses.gpl2; mainProgram = "searchd"; - maintainers = with maintainers; [ jdelStrother ]; - platforms = platforms.all; + maintainers = [ lib.maintainers.jdelStrother ]; + platforms = lib.platforms.all; }; -} +}) |