2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "weaviate";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "1.25.9";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaviate";
|
|
|
|
repo = "weaviate";
|
|
|
|
rev = "v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-liy3mw0+KJsac7AH1PEU6vk+MLo+ybEVCBeSU7MkoY0=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
vendorHash = "sha256-5kfXX+VqGY2ka/w79sdtVHS/0XlF7DyHcq5hvFFIHK0=";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/weaviate-server" ];
|
|
|
|
|
|
|
|
ldflags = [ "-w" "-extldflags" "-static" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/weaviate-server $out/bin/weaviate
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "ML-first vector search engine";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/semi-technologies/weaviate";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
|
|
};
|
|
|
|
}
|