2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "weaviate";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.26.4";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaviate";
|
|
|
|
repo = "weaviate";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-JnzQ+B5zxbKZQ/jzOsD7r58f+TaCivN4BTJyNImi9xE=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-QwB97LNUFK8yuKK8JSy1uH2hu+8ZAlvc+9VlTIld83U=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|