mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
dgraph: 1.0.17 -> 20.03.3
This commit is contained in:
parent
fe753a241f
commit
a9aa6b3110
@ -1,35 +1,40 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "dgraph";
|
pname = "dgraph";
|
||||||
version = "1.0.17";
|
version = "20.03.3";
|
||||||
|
|
||||||
goPackagePath = "github.com/dgraph-io/dgraph";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dgraph-io";
|
owner = "dgraph-io";
|
||||||
repo = "dgraph";
|
repo = "dgraph";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "05z1xwbd76q49zyqahh9krvq78dgkzr22qc6srr4djds0l7y6x5i";
|
sha256 = "0z2zc0mf7ndf3cpzi1js396s1yxpgfjaj9jacifsi8v6i6r0c6cz";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "1nz4yr3y4dr9l09hcsp8x3zhbww9kz0av1ax4192f5zxpw1q275s";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
# see licensing
|
# see licensing
|
||||||
buildFlags = [ "-tags oss" ];
|
buildPhase = ''
|
||||||
|
make oss BUILD_VERSION=${version}
|
||||||
goDeps = ./deps.nix;
|
|
||||||
subPackages = [ "dgraph"];
|
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
export buildFlagsArray="-ldflags=\
|
|
||||||
-X github.com/dgraph-io/dgraph/x.dgraphVersion=${version}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
installPhase = ''
|
||||||
|
install dgraph/dgraph -Dt $out/bin
|
||||||
|
|
||||||
|
for shell in bash zsh; do
|
||||||
|
$out/bin/dgraph completion $shell > dgraph.$shell
|
||||||
|
installShellCompletion dgraph.$shell
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
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 maintainers; [ sigma ];
|
||||||
# Apache 2.0 because we use only build tag "oss"
|
# Apache 2.0 because we use only build "oss"
|
||||||
license = stdenv.lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
1154
pkgs/servers/dgraph/deps.nix
generated
1154
pkgs/servers/dgraph/deps.nix
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user