2015-02-03 17:13:14 +00:00
|
|
|
{ stdenv, git, fetchFromGitHub, goPackages }:
|
2013-10-27 13:26:13 +00:00
|
|
|
|
2015-02-03 17:13:14 +00:00
|
|
|
with goPackages;
|
2013-10-27 21:56:59 +00:00
|
|
|
|
2015-02-03 17:13:14 +00:00
|
|
|
buildGoPackage rec {
|
|
|
|
name = "ngrok-1.7";
|
|
|
|
goPackagePath = "ngrok";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "b7d5571aa7f12ac304b8f8286b855cc64dd9bab8";
|
|
|
|
owner = "inconshreveable";
|
|
|
|
repo = "ngrok";
|
|
|
|
sha256 = "0a5iq9l9f2xdg6gnc9pj0iczhycv1w5iwcqgzzap83xfpy01xkh4";
|
|
|
|
};
|
2013-10-27 13:26:13 +00:00
|
|
|
|
2015-02-03 17:13:14 +00:00
|
|
|
subPackages = [ "main/ngrok" "main/ngrokd" ];
|
|
|
|
|
|
|
|
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
|
2013-10-27 13:26:13 +00:00
|
|
|
'';
|
|
|
|
|
2015-02-04 14:23:52 +00:00
|
|
|
buildInputs = [ git log4go websocket go-vhost mousetrap termbox-go rcrowley.go-metrics
|
2015-02-03 17:13:14 +00:00
|
|
|
yaml-v1 go-bindata go-update binarydist osext ];
|
|
|
|
|
2015-02-05 12:13:14 +00:00
|
|
|
buildFlags = "-tags release";
|
2015-02-03 17:13:14 +00:00
|
|
|
|
2015-02-05 17:07:28 +00:00
|
|
|
dontInstallSrc = true;
|
|
|
|
|
2015-02-03 17:13:14 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Reverse proxy that creates a secure tunnel between from a public endpoint t
|
|
|
|
o a locally running web service";
|
2013-10-27 13:26:13 +00:00
|
|
|
homepage = https://ngrok.com/;
|
|
|
|
license = licenses.asl20;
|
2014-09-15 15:37:17 +01:00
|
|
|
maintainers = with maintainers; [ iElectric cstrahan ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2013-10-27 13:26:13 +00:00
|
|
|
};
|
2015-02-03 17:13:14 +00:00
|
|
|
|
2013-10-27 13:26:13 +00:00
|
|
|
}
|