dgraph: 0.8.2 -> 1.0.17

This commit is contained in:
Yann Hodique 2019-08-31 19:15:52 -07:00
parent d835da5ee9
commit 65b9a73a1a
2 changed files with 911 additions and 89 deletions

View file

@ -2,7 +2,7 @@
buildGoPackage rec {
pname = "dgraph";
version = "0.8.2";
version = "1.0.17";
goPackagePath = "github.com/dgraph-io/dgraph";
@ -10,32 +10,26 @@ buildGoPackage rec {
owner = "dgraph-io";
repo = "dgraph";
rev = "v${version}";
sha256 = "0zc5bda8m2srjbk0gy1nnm0bya8if0kmk1szqr1qv3xifdzmi4nf";
sha256 = "05z1xwbd76q49zyqahh9krvq78dgkzr22qc6srr4djds0l7y6x5i";
};
extraOutputsToInstall = [ "dashboard" ];
# see licensing
buildFlags = [ "-tags oss" ];
goDeps = ./deps.nix;
subPackages = [ "cmd/dgraph" "cmd/dgraphloader" "cmd/bulkloader"];
# let's move the dashboard to a different output, to prevent $bin from
# depending on $out
# TODO: provide a proper npm application for the dashboard.
postPatch = ''
mv dashboard/* $dashboard
'';
subPackages = [ "dgraph"];
preBuild = ''
export buildFlagsArray="-ldflags=\
-X github.com/dgraph-io/dgraph/x.dgraphVersion=${version} \
-X github.com/dgraph-io/dgraph/cmd/dgraph/main.uiDir=$dashboard/src/assets/"
-X github.com/dgraph-io/dgraph/x.dgraphVersion=${version}"
'';
meta = {
homepage = "https://dgraph.io/";
description = "Fast, Distributed Graph DB";
maintainers = with stdenv.lib.maintainers; [ sigma ];
license = stdenv.lib.licenses.agpl3;
# Apache 2.0 because we use only build tag "oss"
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
};
}

File diff suppressed because it is too large Load diff