2018-07-21 00:44:44 +00:00
|
|
|
{ buildGoPackage, go-bindata, fetchFromGitHub }:
|
2017-08-27 21:08:18 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ngrok";
|
2017-08-27 21:08:18 +00:00
|
|
|
version = "1.7.1";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2017-08-27 21:08:18 +00:00
|
|
|
|
|
|
|
goPackagePath = "ngrok";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "inconshreveable";
|
|
|
|
repo = "ngrok";
|
|
|
|
sha256 = "1r4nc9knp0nxg4vglg7v7jbyd1nh1j2590l720ahll8a4fbsx5a4";
|
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2020-03-17 23:23:50 +00:00
|
|
|
nativeBuildInputs = [ go-bindata ];
|
2017-08-27 21:08:18 +00:00
|
|
|
|
|
|
|
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" ];
|
2019-04-14 23:25:45 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://ngrok.com/";
|
2019-04-14 23:25:45 +00:00
|
|
|
};
|
2017-08-27 21:08:18 +00:00
|
|
|
}
|