Created
March 14, 2019 11:23
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> {}; | |
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