Merge pull request #29 from oxalica/fix/llvm-tools

Patch binaries of `llvm-tools-preview`
wip/nixpkgs-raku
oxalica 3 years ago committed by GitHub
commit 92e356aeb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      rust-overlay.nix

@ -244,6 +244,11 @@ let
"$out/bin/clippy-driver" || true
''}
fi
'' + optionalString (pname == "llvm-tools-preview" && hostPlatform.isLinux) ''
dir="$out/lib/rustlib/${super.rust.toRustTarget hostPlatform}"
for f in "$dir"/bin/*; do
patchelf --set-rpath "$dir/lib" "$f" || true
done
'';
postFixup = ''

Loading…
Cancel
Save