nixpkgs/pkgs/tools/misc/ngrok/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2015-02-03 17:13:14 +00:00
{ stdenv, git, fetchFromGitHub, goPackages }:
2015-02-03 17:13:14 +00:00
with goPackages;
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";
};
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
'';
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 ];
buildFlags = "-tags release";
2015-02-03 17:13:14 +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";
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;
};
2015-02-03 17:13:14 +00:00
}