cdrtools: fix aarch64-darwin build

This commit is contained in:
Mark Vainomaa 2021-12-27 16:59:54 +02:00
parent 0736e7e3a9
commit 3d39c9e931
No known key found for this signature in database
GPG key ID: 1B3F9523B542D315

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;