diff options
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r-- | pkgs/servers/search/meilisearch/default.nix | 10 | ||||
-rw-r--r-- | pkgs/servers/search/qdrant/default.nix | 16 |
2 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/servers/search/meilisearch/default.nix b/pkgs/servers/search/meilisearch/default.nix index 3b568df12b538..b60dded032738 100644 --- a/pkgs/servers/search/meilisearch/default.nix +++ b/pkgs/servers/search/meilisearch/default.nix @@ -8,7 +8,7 @@ , nixosTests }: -let version = "1.0.0"; +let version = "1.0.1"; in rustPlatform.buildRustPackage { pname = "meilisearch"; @@ -17,11 +17,11 @@ rustPlatform.buildRustPackage { src = fetchFromGitHub { owner = "meilisearch"; repo = "MeiliSearch"; - rev = "v${version}"; - hash = "sha256-XWPJldWxe8iply7XtmDem1gfbNuuaWuFdMfuCbcU6tc="; + rev = "refs/tags/v${version}"; + hash = "sha256-PARvz1LEEgmelku69ywKditAx0G4xJnEL6dYIh1IYTM="; }; - cargoHash = "sha256-v8P4pbTJ/t9TgB07tyhn3y8q65xILFTbBgziw5kuxUQ="; + cargoHash = "sha256-p9X2l5nUR02Emo6dt6LsrO2Vef4dbCvCljaXL9imnFs="; # Default features include mini dashboard which downloads something from the internet. buildNoDefaultFeatures = true; @@ -40,7 +40,7 @@ rustPlatform.buildRustPackage { doCheck = false; meta = with lib; { - description = "Powerful, fast, and an easy to use search engine "; + description = "Powerful, fast, and an easy to use search engine"; homepage = "https://docs.meilisearch.com/"; changelog = "https://github.com/meilisearch/meilisearch/releases/tag/v${version}"; license = licenses.mit; diff --git a/pkgs/servers/search/qdrant/default.nix b/pkgs/servers/search/qdrant/default.nix index abde1176ceda3..0a3c0f00f913e 100644 --- a/pkgs/servers/search/qdrant/default.nix +++ b/pkgs/servers/search/qdrant/default.nix @@ -3,20 +3,23 @@ , fetchFromGitHub , protobuf , stdenv +, pkg-config +, openssl +, Security }: rustPlatform.buildRustPackage rec { pname = "qdrant"; - version = "0.11.2"; + version = "1.0.2"; src = fetchFromGitHub { owner = "qdrant"; repo = "qdrant"; rev = "refs/tags/v${version}"; - sha256 = "sha256-MT2k4k/g97iXVUCz1dYJdL+JBCLKTWqE2u2Yiuvd/nw="; + sha256 = "sha256-AVglZr3J9fEWgE2g5UHt1j6YQud/viGp0IvuR9XRntE="; }; - cargoSha256 = "sha256-86F7B+SKaAxu7c3kyYurI5jPnnbvtdD0jouNCzT0A50="; + cargoSha256 = "sha256-4hzixh1/nVIMRsBSoldmbtpcpBMmvxik3lV/h4FPOrk="; prePatch = lib.optionalString stdenv.isAarch64 '' substituteInPlace .cargo/config.toml \ @@ -24,7 +27,12 @@ rustPlatform.buildRustPackage rec { --replace "linker = \"aarch64-linux-gnu-gcc\"" "" ''; - nativeBuildInputs = [ protobuf rustPlatform.bindgenHook ]; + # Needed to get openssl-sys to use pkg-config. + OPENSSL_NO_VENDOR = 1; + + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; + + nativeBuildInputs = [ protobuf rustPlatform.bindgenHook pkg-config ]; NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-faligned-allocation"; |