From 68efd9293be6d150e1b322c0a200fda548e6579e Mon Sep 17 00:00:00 2001 From: Mostly Void <7rat13@gmail.com> Date: Sun, 13 Nov 2022 22:09:51 +0530 Subject: [PATCH] qdrant: 0.9.1 -> 0.11.2 --- pkgs/servers/search/qdrant/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/search/qdrant/default.nix b/pkgs/servers/search/qdrant/default.nix index 60d20aa0ea55..abde1176ceda 100644 --- a/pkgs/servers/search/qdrant/default.nix +++ b/pkgs/servers/search/qdrant/default.nix @@ -7,16 +7,22 @@ rustPlatform.buildRustPackage rec { pname = "qdrant"; - version = "0.9.1"; + version = "0.11.2"; src = fetchFromGitHub { owner = "qdrant"; repo = "qdrant"; rev = "refs/tags/v${version}"; - sha256 = "sha256-rOIWiSpAqIUf2V9BMMTZqF/urz754pZV4yHav26dxqY="; + sha256 = "sha256-MT2k4k/g97iXVUCz1dYJdL+JBCLKTWqE2u2Yiuvd/nw="; }; - cargoSha256 = "sha256-ovHxtOYlzVsALw/4bhL9EcFXaKr6Bg/D0w6OPMCLZoQ="; + cargoSha256 = "sha256-86F7B+SKaAxu7c3kyYurI5jPnnbvtdD0jouNCzT0A50="; + + prePatch = lib.optionalString stdenv.isAarch64 '' + substituteInPlace .cargo/config.toml \ + --replace "[target.aarch64-unknown-linux-gnu]" "" \ + --replace "linker = \"aarch64-linux-gnu-gcc\"" "" + ''; nativeBuildInputs = [ protobuf rustPlatform.bindgenHook ];