Merge pull request #65319 from nicknovitski/fix-darwin-ngrok

ngrok: fix build on darwin
This commit is contained in:
Matthew Bauer 2019-07-25 09:54:43 -04:00 committed by GitHub
commit 173a5408d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

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;