Files
nixpkgs/pkgs/by-name/qd/qdrant/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.5 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
protobuf,
pkg-config,
openssl,
rust-jemalloc-sys,
rust-jemalloc-sys-unprefixed,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "qdrant";
version = "1.15.4";
src = fetchFromGitHub {
owner = "qdrant";
repo = "qdrant";
tag = "v${finalAttrs.version}";
hash = "sha256-t+j7gq0PidvBGkjkyU8Zny9bgjKGNITUJOmyFnneZVY=";
};
cargoHash = "sha256-bcPSHoUOUliAU+GersU4auzdUiv9PPuAjrPO/FxovB8=";
nativeBuildInputs = [
protobuf
rustPlatform.bindgenHook
pkg-config
];
buildInputs = [
openssl
rust-jemalloc-sys
rust-jemalloc-sys-unprefixed
];
# Needed to get openssl-sys to use pkg-config.
env.OPENSSL_NO_VENDOR = 1;
# Fix cargo-auditable issue with bench_rocksdb = ["dep:rocksdb"]
auditable = false;
__darwinAllowLocalNetworking = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Vector Search Engine for the next generation of AI applications";
longDescription = ''
Expects a config file at config/config.yaml with content similar to
https://github.com/qdrant/qdrant/blob/master/config/config.yaml
'';
homepage = "https://github.com/qdrant/qdrant";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dit7ya ];
};
})