Merge pull request #67863 from sigma/pr/dgraph-1.0.17
dgraph: 0.8.2 -> 1.0.17
This commit is contained in:
commit
f7a856e4c5
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "dgraph";
|
pname = "dgraph";
|
||||||
version = "0.8.2";
|
version = "1.0.17";
|
||||||
|
|
||||||
goPackagePath = "github.com/dgraph-io/dgraph";
|
goPackagePath = "github.com/dgraph-io/dgraph";
|
||||||
|
|
||||||
@ -10,32 +10,26 @@ buildGoPackage rec {
|
|||||||
owner = "dgraph-io";
|
owner = "dgraph-io";
|
||||||
repo = "dgraph";
|
repo = "dgraph";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0zc5bda8m2srjbk0gy1nnm0bya8if0kmk1szqr1qv3xifdzmi4nf";
|
sha256 = "05z1xwbd76q49zyqahh9krvq78dgkzr22qc6srr4djds0l7y6x5i";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOutputsToInstall = [ "dashboard" ];
|
# see licensing
|
||||||
|
buildFlags = [ "-tags oss" ];
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
subPackages = [ "cmd/dgraph" "cmd/dgraphloader" "cmd/bulkloader"];
|
subPackages = [ "dgraph"];
|
||||||
|
|
||||||
# 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
|
|
||||||
'';
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export buildFlagsArray="-ldflags=\
|
export buildFlagsArray="-ldflags=\
|
||||||
-X github.com/dgraph-io/dgraph/x.dgraphVersion=${version} \
|
-X github.com/dgraph-io/dgraph/x.dgraphVersion=${version}"
|
||||||
-X github.com/dgraph-io/dgraph/cmd/dgraph/main.uiDir=$dashboard/src/assets/"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://dgraph.io/";
|
homepage = "https://dgraph.io/";
|
||||||
description = "Fast, Distributed Graph DB";
|
description = "Fast, Distributed Graph DB";
|
||||||
maintainers = with stdenv.lib.maintainers; [ sigma ];
|
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;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
978
pkgs/servers/dgraph/deps.nix
generated
978
pkgs/servers/dgraph/deps.nix
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user