tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
743 stars 73 forks source link

apple-silicon-support/packages/linux-asahi/rust-bindgen-version.patch: Breaks POSIX #124

Closed Kreyren closed 6 months ago

Kreyren commented 6 months ago

https://github.com/tpwrules/nixos-apple-silicon/blob/14b327ca47703c376ebb82ba16dc42ca2baa57d8/apple-silicon-support/packages/linux-asahi/rust-bindgen-version.patch#L9-L11

There is a good reason why it's using grep -F | grep -oE as that is POSIX compatible (thus why it's .sh instead of .bash) so that it can be called from a shell that doesn't support dynamic linking.. Using grep -oP breaks that

tpwrules commented 6 months ago

This patch has been removed so any issues this cause should now be fixed. Nix should always call it from bash anyway.