mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
34 lines
740 B
Nix
34 lines
740 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "weaviate";
|
|
version = "1.25.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weaviate";
|
|
repo = "weaviate";
|
|
rev = "v${version}";
|
|
hash = "sha256-liy3mw0+KJsac7AH1PEU6vk+MLo+ybEVCBeSU7MkoY0=";
|
|
};
|
|
|
|
vendorHash = "sha256-5kfXX+VqGY2ka/w79sdtVHS/0XlF7DyHcq5hvFFIHK0=";
|
|
|
|
subPackages = [ "cmd/weaviate-server" ];
|
|
|
|
ldflags = [ "-w" "-extldflags" "-static" ];
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/weaviate-server $out/bin/weaviate
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "ML-first vector search engine";
|
|
homepage = "https://github.com/semi-technologies/weaviate";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|