Created
March 14, 2019 11:23
-
-
Save Jomik/f162c9d3954808d443eec3648a093f6b to your computer and use it in GitHub Desktop.
This file contains 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> {}; | |
runCommandCC "cstub-patcher" { buildInputs = [ gcc patchelf ]; } '' | |
cat <<EOF > $out | |
#!${stdenv.shell} | |
${patchelf}/bin/patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${lib.makeLibraryPath [ zlib libxml2.out ]} \$1 | |
EOF | |
chmod +x $out | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment