ngrok: enable darwin build
This commit is contained in:
parent
63c6c2dbdc
commit
592ce9d930
|
@ -1,31 +1,38 @@
|
||||||
{ stdenv, fetchurl, unzip }:
|
{ stdenv, fetchurl, unzip }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ngrok-${version}";
|
name = "ngrok-${version}";
|
||||||
version = "2.2.8";
|
version = "2.2.8";
|
||||||
|
|
||||||
src = if stdenv.system == "i686-linux" then fetchurl {
|
src = if stdenv.isLinux && stdenv.isi686 then fetchurl {
|
||||||
url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-i386.tgz";
|
url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-i386.tgz";
|
||||||
sha256 = "0s5ymlaxrvm13q3mlvfirh74sx60qh56c5sgdma2r7q5qlsq41xg";
|
sha256 = "0s5ymlaxrvm13q3mlvfirh74sx60qh56c5sgdma2r7q5qlsq41xg";
|
||||||
} else if stdenv.system == "x86_64-linux" then fetchurl {
|
} else if stdenv.isLinux && stdenv.isx86_64 then fetchurl {
|
||||||
url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz";
|
url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz";
|
||||||
sha256 = "1mn9iwgy6xzrjihikwc2k2j59igqmph0cwx17qp0ziap9lp5xxad";
|
sha256 = "1mn9iwgy6xzrjihikwc2k2j59igqmph0cwx17qp0ziap9lp5xxad";
|
||||||
|
} else if stdenv.isDarwin then fetchurl {
|
||||||
|
url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-386.zip";
|
||||||
|
sha256 = "0yfd250b55wcpgqd00rqfaa7a82f35fmybb31q5xwdbgc2i47pbh";
|
||||||
} else throw "platform ${stdenv.system} not supported!";
|
} else throw "platform ${stdenv.system} not supported!";
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
nativeBuildInputs = optional stdenv.isDarwin unzip;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D ngrok $out/bin/ngrok
|
install -D ngrok $out/bin/ngrok
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = {
|
||||||
description = "ngrok";
|
description = "ngrok";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Allows you to expose a web server running on your local machine to the internet.
|
Allows you to expose a web server running on your local machine to the internet.
|
||||||
'';
|
'';
|
||||||
homepage = https://ngrok.com/;
|
homepage = https://ngrok.com/;
|
||||||
license = stdenv.lib.licenses.unfree;
|
license = licenses.unfree;
|
||||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
|
||||||
maintainers = [ maintainers.bobvanderlinden ];
|
maintainers = [ maintainers.bobvanderlinden ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue