ngrok: fix build on darwin
This commit is contained in:
parent
bbd4a0c100
commit
1c0e584c64
@ -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
Block a user