1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, jemalloc, nodejs }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-VtOa+MfhNMbzqiDJY5KYwo2OCgu+4sn18M+dujzwi0g=";
14 vendorHash = "sha256-pX5jRVh4cSuPK3cpDVyvt/gTHcFgG9hE3H96TuMYxKk=";
19 "-X github.com/dgraph-io/dgraph/x.dgraphVersion=${version}-oss"
26 nativeBuildInputs = [ installShellFiles ];
28 # todo those dependencies are required in the makefile, but verify how they are used
30 buildInputs = [ jemalloc nodejs ];
32 subPackages = [ "dgraph" ];
35 for shell in bash zsh; do
36 $out/bin/dgraph completion $shell > dgraph.$shell
37 installShellCompletion dgraph.$shell
42 homepage = "https://dgraph.io/";
43 description = "Fast, Distributed Graph DB";
44 maintainers = with maintainers; [ sigma ];
45 # Apache 2.0 because we use only build "oss"
46 license = licenses.asl20;
47 mainProgram = "dgraph";