depot/third_party/nixpkgs/pkgs/servers/search/weaviate/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
740 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "weaviate";
version = "1.25.2";
src = fetchFromGitHub {
owner = "weaviate";
repo = "weaviate";
rev = "v${version}";
hash = "sha256-fN0tlu6zhSy6SiFX+f38TL8ciJHYfKZXVYeJp2HgRIA=";
};
vendorHash = "sha256-4QSc4dU1bEpKpiG7FwSq/BbnFL94DqgjQo6zN67d8Sw=";
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 ];
};
}