2016-09-20 13:31:54 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, gcc }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "cockroach-${version}";
|
|
|
|
version = "beta-20160915";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/cockroachdb/cockroach";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cockroachdb";
|
|
|
|
repo = "cockroach";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "11camp588vsccxlc138l7x4qws2fj5wpx1177irzayqdng8dilx3";
|
|
|
|
};
|
|
|
|
|
2016-09-20 19:02:26 +02:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/cockroachdb/cockroach/build.tag=${version}
|
|
|
|
'';
|
|
|
|
|
2016-09-20 13:31:54 +02:00
|
|
|
buildInputs = [ gcc ];
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.cockroachlabs.com;
|
|
|
|
description = "A scalable, survivable, strongly-consistent SQL database";
|
|
|
|
license = licenses.asl20;
|
2016-09-23 12:22:31 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2016-09-20 13:31:54 +02:00
|
|
|
maintainers = [ maintainers.rushmorem ];
|
|
|
|
};
|
|
|
|
}
|