14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
21 rev = "refs/tags/v${version}";
22 sha256 = "sha256-q99roKqeC8lra29gyJertJLnVNFvKRFZ2agREvHZx6k=";
26 lockFile = ./Cargo.lock;
28 "tar-0.4.41" = "sha256-32n96yoGbDzhgVZvISLGwxHuv7PGtxde5ma/YlsR1Gg=";
29 "wal-0.1.2" = "sha256-QcyS0v7O1BziVT3oahebpq+u4l5JGaujCaRIPdmsJl4=";
36 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
41 nativeBuildInputs = [ protobuf rustPlatform.bindgenHook pkg-config ];
44 # Needed to get openssl-sys to use pkg-config.
45 OPENSSL_NO_VENDOR = 1;
46 } // lib.optionalAttrs stdenv.cc.isClang {
47 NIX_CFLAGS_COMPILE = "-faligned-allocation";
51 updateScript = nix-update-script { };
55 description = "Vector Search Engine for the next generation of AI applications";
57 Expects a config file at config/config.yaml with content similar to
58 https://github.com/qdrant/qdrant/blob/master/config/config.yaml
60 homepage = "https://github.com/qdrant/qdrant";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ dit7ya ];