nix-vcpkg-cross-experiment/nix/packages/vcpkg/package.nix

8 lines
304 B
Nix
Raw Normal View History

2024-06-24 08:07:42 +02:00
{ vcpkg }:
vcpkg.overrideAttrs (prevAttrs: {
postPatch = ''
sed -i -E -e 's/aarch64-linux-gnu-(as|gcc|g++)/aarch64-unknown-linux-gnu-\1/' scripts/toolchains/linux.cmake
sed -i -E -e 's/arm-linux-gnueabihf-(as|gcc|g++)/armv7l-unknown-linux-gnueabihf-\1/' scripts/toolchains/linux.cmake
'';
})