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:
parent
3d5edb453f
commit
78876a8292
34
pkgs/tools/misc/ngrok/default.nix
Normal file
34
pkgs/tools/misc/ngrok/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 { };
|
||||||
|
|
Loading…
Reference in a new issue