5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
33 lines
744 B
Nix
33 lines
744 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "weaviate";
|
|
version = "1.20.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weaviate";
|
|
repo = "weaviate";
|
|
rev = "v${version}";
|
|
hash = "sha256-4235Yb4F0YPihiukJmUswWH/hATRiwChdZV6+erRRnk=";
|
|
};
|
|
|
|
vendorHash = "sha256-RL18glau8IODHy0HqLq28nE7OIUezWDJY7BE/OBFHBw=";
|
|
|
|
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 ];
|
|
};
|
|
}
|