mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
34 lines
744 B
Nix
34 lines
744 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "weaviate";
|
|
version = "1.21.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weaviate";
|
|
repo = "weaviate";
|
|
rev = "v${version}";
|
|
hash = "sha256-rWoVuWzfRJhhYDwOBcmSIJXh0WwvZFYM2GPOMvP98xM=";
|
|
};
|
|
|
|
vendorHash = "sha256-HUfkwmAIwTPDZsgRLte7tu/0QKT82WriTqJ14iiKKOs=";
|
|
|
|
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 ];
|
|
};
|
|
}
|