Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 48 additions & 6 deletions pkgs/by-name/ve/vectorcode/package.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,56 @@
{
lib,
python3Packages,
cargo,
fetchFromGitHub,
installShellFiles,
pkg-config,
protobuf,
python3,
rustc,
rustPlatform,
versionCheckHook,

lspSupport ? true,
}:

python3Packages.buildPythonApplication rec {
let
python = python3.override {
packageOverrides = self: super: {
# https://github.com/Davidyz/VectorCode/pull/36
chromadb = super.chromadb.overridePythonAttrs (old: rec {
version = "0.6.3";
src = fetchFromGitHub {
owner = "chroma-core";
repo = "chroma";
tag = version;
hash = "sha256-yvAX8buETsdPvMQmRK5+WFz4fVaGIdNlfhSadtHwU5U=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
pname = "chromadb";
inherit version src;
hash = "sha256-lHRBXJa/OFNf4x7afEJw9XcuDveTBIy3XpQ3+19JXn4=";
};
postPatch = null;
build-system = with self; [
setuptools
setuptools-scm
];
nativeBuildInputs = [
cargo
pkg-config
protobuf
rustc
rustPlatform.cargoSetupHook
];
dependencies = old.dependencies ++ [
self.chroma-hnswlib
];
doCheck = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prior _0 package had checks (except on arm linux).

Ideally we'd keep them.

What's the reason for dropping them here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't get them to work, see e.g. #417287.
Feel free to work on the tests.

});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "vectorcode";
version = "0.6.10";
pyproject = true;
Expand All @@ -20,12 +62,12 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-k9YpsVFV1HkIIIFPB7Iz7Jar+lY5vK6gpzNIlX55ZDY=";
};

build-system = with python3Packages; [
build-system = with python.pkgs; [
pdm-backend
];

dependencies =
with python3Packages;
with python.pkgs;
[
chromadb
colorlog
Expand All @@ -44,7 +86,7 @@ python3Packages.buildPythonApplication rec {
]
++ lib.optionals lspSupport optional-dependencies.lsp;

optional-dependencies = with python3Packages; {
optional-dependencies = with python.pkgs; {
intel = [
openvino
optimum
Expand Down Expand Up @@ -77,7 +119,7 @@ python3Packages.buildPythonApplication rec {
installShellFiles
versionCheckHook
]
++ (with python3Packages; [
++ (with python.pkgs; [
mcp
pygls
pytestCheckHook
Expand Down
Loading