504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
33 lines
744 B
Nix
33 lines
744 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "weaviate";
|
|
version = "1.23.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weaviate";
|
|
repo = "weaviate";
|
|
rev = "v${version}";
|
|
hash = "sha256-gm8PNNRnfnpLR5dS7nFfbvbZSSvTxbC4lUma2HI/+ZM=";
|
|
};
|
|
|
|
vendorHash = "sha256-UEdGoXKq7ewNszahgcomjjuO2uzRZpiwkvvnXyFc9Og=";
|
|
|
|
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 ];
|
|
};
|
|
}
|