blob: fa890cfe0fc145c9baff92bc6275f5c531b43b46 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv, git, fetchFromGitHub, goPackages }:
with goPackages;
buildGoPackage rec {
name = "ngrok-1.7";
goPackagePath = "ngrok";
src = fetchFromGitHub {
rev = "b7d5571aa7f12ac304b8f8286b855cc64dd9bab8";
owner = "inconshreveable";
repo = "ngrok";
sha256 = "0a5iq9l9f2xdg6gnc9pj0iczhycv1w5iwcqgzzap83xfpy01xkh4";
};
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
'';
buildInputs = [ git log4go websocket go-vhost mousetrap termbox-go rcrowley.go-metrics
yaml-v1 go-bindata go-update binarydist osext ];
buildFlags = "-tags release";
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;
maintainers = with maintainers; [ iElectric cstrahan ];
platforms = with platforms; linux ++ darwin;
};
}
|