1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00

add ngrok: Reverse proxy that creates a secure tunnel between from a public endpoint to a locally running web service

This commit is contained in:
Domen Kožar 2013-10-27 14:26:13 +01:00
parent 3d5edb453f
commit 78876a8292
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ stdenv, fetchurl, go, git, mercurial, bazaar, cacert }:
stdenv.mkDerivation rec {
name = "ngrok-${version}";
version = "1.6";
src = fetchurl {
url = "https://github.com/inconshreveable/ngrok/archive/${version}.tar.gz";
sha256 = "0w54ck00ma8wd87gc3dligypdjs7vrzbi9py46sqphsid3rihkjr";
};
buildInputs = [ go git mercurial bazaar ];
GIT_SSL_CAINFO = "${cacert}/etc/ca-bundle.crt";
preBuild = ''
export HOME="$PWD"
'';
installPhase = ''
make release-client
mkdir -p $out/bin
cp bin/ngrok $out/bin
cp -R assets $out/
'';
meta = with stdenv.lib; {
description = "Reverse proxy that creates a secure tunnel between from a public endpoint to a locally running web service";
homepage = https://ngrok.com/;
license = licenses.asl20;
maintainers = with maintainers; [ iElectric ];
platforms = stdenv.lib.platforms.all;
};
}

View file

@ -1407,6 +1407,8 @@ let
newsbeuter = callPackage ../applications/networking/feedreaders/newsbeuter { }; newsbeuter = callPackage ../applications/networking/feedreaders/newsbeuter { };
ngrok = callPackage ../tools/misc/ngrok { };
mpack = callPackage ../tools/networking/mpack { }; mpack = callPackage ../tools/networking/mpack { };
pa_applet = callPackage ../tools/audio/pa-applet { }; pa_applet = callPackage ../tools/audio/pa-applet { };