cdrtools: fix riscv64-linux build (#338586)

This commit is contained in:
Aleksana 2024-09-04 13:08:08 +08:00 committed by GitHub
commit 755f8f9475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,10 +16,11 @@ 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
ln -sv i586-linux-cc.rul RULES/riscv64-linux-cc.rul
'';
dontConfigure = true;