14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
21 rev = "refs/tags/v${version}";
22 sha256 = "sha256-BgsLmE50mGmB5fcUjov8wcAHRTKMYaoyoXjSUyIddlc=";
26 ./1.7.4-CVE-2024-3078.patch
30 lockFile = ./Cargo.lock;
32 "quantization-0.1.0" = "sha256-ggVqJiftu0nvyEM0dzsH0JqIc/Z1XILyUSKiJHeuuZs=";
33 "tonic-0.9.2" = "sha256-ZlcDUZy/FhxcgZE7DtYhAubOq8DMSO17T+TCmXar1jE=";
34 "wal-0.1.2" = "sha256-nBGwpphtj+WBwL9TmWk7qXiEqlIWkgh/2V9uProqhMk=";
41 ] ++ lib.optionals stdenv.isDarwin [
46 nativeBuildInputs = [ protobuf rustPlatform.bindgenHook pkg-config ];
49 # Needed to get openssl-sys to use pkg-config.
50 OPENSSL_NO_VENDOR = 1;
51 } // lib.optionalAttrs stdenv.cc.isClang {
52 NIX_CFLAGS_COMPILE = "-faligned-allocation";
56 updateScript = nix-update-script { };
60 description = "Vector Search Engine for the next generation of AI applications";
62 Expects a config file at config/config.yaml with content similar to
63 https://github.com/qdrant/qdrant/blob/master/config/config.yaml
65 homepage = "https://github.com/qdrant/qdrant";
66 license = licenses.asl20;
67 maintainers = with maintainers; [ dit7ya ];