nixpkgs/pkgs/servers/search/weaviate/default.nix
2024-03-17 02:23:22 +00:00

34 lines
744 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "weaviate";
version = "1.24.4";
src = fetchFromGitHub {
owner = "weaviate";
repo = "weaviate";
rev = "v${version}";
hash = "sha256-kovhusZ/4/wLr8FeBY6jBPdD1V718yI41fTjbtjGleM=";
};
vendorHash = "sha256-0CPdBrEjBJiX/Fv0DhFaZqkixuEPW2Pttl5wCNxieYc=";
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 ];
};
}