ngrok: fix build on darwin

This commit is contained in:
Nick Novitski 2019-07-23 14:51:03 -07:00
parent bbd4a0c100
commit 1c0e584c64

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation {
sourceRoot = ".";
nativeBuildInputs = [ patchelfUnstable ];
nativeBuildInputs = optionals stdenv.isLinux [ patchelfUnstable ];
unpackPhase = "cp $src ngrok";
@ -32,10 +32,10 @@ stdenv.mkDerivation {
installPhase = ''
install -D ngrok $out/bin/ngrok
'' + optionalString stdenv.isLinux ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
$out/bin/ngrok
'';
'';
passthru.updateScript = ./update.sh;