2022-12-23 20:11:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "weaviate";
|
2024-03-02 17:58:23 +00:00
|
|
|
version = "1.24.1";
|
2022-12-23 20:11:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaviate";
|
|
|
|
repo = "weaviate";
|
|
|
|
rev = "v${version}";
|
2024-03-02 17:58:23 +00:00
|
|
|
hash = "sha256-9FA0GxLgzw3D329JdQ044QC/D9ncxsadmCHlppnf9fI=";
|
2022-12-23 20:11:55 +00:00
|
|
|
};
|
|
|
|
|
2024-03-02 17:58:23 +00:00
|
|
|
vendorHash = "sha256-G5ya2O5IY7+DE4UeXuH5lTT0jbjIc9W09ePLsJsjQ78=";
|
2022-12-23 20:11:55 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/weaviate-server" ];
|
|
|
|
|
|
|
|
ldflags = [ "-w" "-extldflags" "-static" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/weaviate-server $out/bin/weaviate
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The ML-first vector search engine";
|
|
|
|
homepage = "https://github.com/semi-technologies/weaviate";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
|
|
};
|
|
|
|
}
|