3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/sql/cockroachdb/default.nix
rushmorem 65198a9082 cockroachdb: build only on x86_64-linux
CockroachDB is failing to build on `x86_64-darwin` according to
Hydra. I don't have a Mac or Windows machine to debug the builds
on so I can't support those.
2016-09-23 12:22:31 +02:00

34 lines
813 B
Nix

{ 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";
};
buildFlagsArray = ''
-ldflags=
-X github.com/cockroachdb/cockroach/build.tag=${version}
'';
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;
platforms = [ "x86_64-linux" ];
maintainers = [ maintainers.rushmorem ];
};
}