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 = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
nativeBuildInputs = [ patchelfUnstable ];
|
nativeBuildInputs = optionals stdenv.isLinux [ patchelfUnstable ];
|
||||||
|
|
||||||
unpackPhase = "cp $src ngrok";
|
unpackPhase = "cp $src ngrok";
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D ngrok $out/bin/ngrok
|
install -D ngrok $out/bin/ngrok
|
||||||
|
'' + optionalString stdenv.isLinux ''
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
$out/bin/ngrok
|
$out/bin/ngrok
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user