Add preliminary hologram

This commit is contained in:
Dan Peebles 2015-03-03 00:56:10 -05:00 committed by Dan Peebles
parent d8d6551321
commit 0e752c9427

View file

@ -1,7 +1,7 @@
/* This file defines the composition for Go packages. */
{ overrides, stdenv, go, buildGoPackage, git, pkgconfig, libusb
, fetchgit, fetchhg, fetchurl, fetchFromGitHub, fetchbzr }:
, fetchgit, fetchhg, fetchurl, fetchFromGitHub, fetchbzr, pkgs }:
let self = _self // overrides; _self = with self; {
@ -501,6 +501,31 @@ let self = _self // overrides; _self = with self; {
};
};
hologram = buildGoPackage rec {
rev = "6e81a11091f59a9392e424d8f1c42b4b813c4bff";
name = "hologram-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/AdRoll/hologram";
src = fetchFromGitHub {
inherit rev;
owner = "copumpkin";
repo = "hologram";
sha256 = "1rpnc8sv9mwm9r9yfh8h2zxczznmvlhasrz55bcifmk4sym4ywq7";
};
preBuild = ''
cd "go/src/$goPackagePath"
# Work around `go install` assuming containing directory is the executable name we want
for i in */bin; do
mv "$i" "$(dirname "$i")/$(dirname "$i")"
done
# Generate protobuf definitions and static assets
make protocol/hologram.pb.go
make transport/remote/bindata.go
'';
buildInputs = [ pkgs.protobuf crypto protobuf goamz rgbterm go-bindata go-homedir ldap g2s gox ];
};
influxdb-go = buildGoPackage rec {
rev = "63c9a5f67dcb633d05164bf8442160c9e2e402f7";
name = "influxdb-go-${stdenv.lib.strings.substring 0 7 rev}";