Created
April 19, 2019 16:52
-
-
Save pkieltyka/69e62efd7058e67a43afc8f6e12b7541 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "ngrok"; | |
src = fetchzip { | |
url = https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip; | |
sha256 = "16gd92gqpb2fhgk2r2yzm7ralgcqy0gymh888k6h6n32j6pglzwi"; | |
}; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp ngrok $out/bin | |
patchelf --set-interpreter \ | |
${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/ngrok | |
patchelf --set-rpath ${stdenv.glibc}/lib $out/bin/ngrok | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment