Merge pull request #65319 from nicknovitski/fix-darwin-ngrok
ngrok: fix build on darwin
This commit is contained in:
commit
173a5408d2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue