Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 759 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "weaviate"; 9 version = "1.31.6"; 10 11 src = fetchFromGitHub { 12 owner = "weaviate"; 13 repo = "weaviate"; 14 rev = "v${version}"; 15 hash = "sha256-UuvIMmN4gyAzXB9ZXmPATOyFt7hNVh2r+c+Ho1Tn/WA="; 16 }; 17 18 vendorHash = "sha256-xAP9jrkpQFoGovTL5nymG2CYxwseJ3Be3NoVVrWXDYs="; 19 20 subPackages = [ "cmd/weaviate-server" ]; 21 22 ldflags = [ 23 "-w" 24 "-extldflags" 25 "-static" 26 ]; 27 28 postInstall = '' 29 ln -s $out/bin/weaviate-server $out/bin/weaviate 30 ''; 31 32 meta = with lib; { 33 description = "ML-first vector search engine"; 34 homepage = "https://github.com/semi-technologies/weaviate"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ dit7ya ]; 37 }; 38}