Skip to content

Instantly share code, notes, and snippets.

@pkieltyka
Created April 19, 2019 16:52
Show Gist options
  • Save pkieltyka/69e62efd7058e67a43afc8f6e12b7541 to your computer and use it in GitHub Desktop.
Save pkieltyka/69e62efd7058e67a43afc8f6e12b7541 to your computer and use it in GitHub Desktop.
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