2016-06-06 02:28:52 +02:00
|
|
|
{ stdenv, lib, pkgconfig, buildGoPackage, go-bindata, fetchFromGitHub }:
|
2016-06-03 16:46:37 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "ngrok-${version}";
|
|
|
|
version = "1.7.1";
|
|
|
|
rev = "${version}";
|
|
|
|
|
|
|
|
goPackagePath = "ngrok";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "inconshreveable";
|
|
|
|
repo = "ngrok";
|
|
|
|
sha256 = "1r4nc9knp0nxg4vglg7v7jbyd1nh1j2590l720ahll8a4fbsx5a4";
|
|
|
|
};
|
|
|
|
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-03 16:46:37 +02:00
|
|
|
|
|
|
|
buildInputs = [ go-bindata ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e '/jteeuwen\/go-bindata/d' \
|
|
|
|
-e '/export GOPATH/d' \
|
|
|
|
-e 's/go get/#go get/' \
|
|
|
|
-e 's|bin/go-bindata|go-bindata|' -i Makefile
|
|
|
|
make assets BUILDTAGS=release
|
|
|
|
export sourceRoot=$sourceRoot/src/ngrok
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildFlags = [ "-tags release" ];
|
|
|
|
}
|