Merge pull request #152347 from mikroskeem/cdrtools-darwin-aarch64

cdrtools: fix aarch64-darwin build
This commit is contained in:
Bobby Rong 2021-12-28 13:22:17 +08:00 committed by GitHub
commit 9b1f828a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
sed "/\.mk3/d" -i libschily/Targets.man
substituteInPlace man/Makefile --replace "man4" ""
substituteInPlace RULES/rules.prg --replace "/bin/" ""
'' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-cc.rul
ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-clang.rul
ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-clang64.rul
'';
dontConfigure = true;