cdrtools: fix riscv64-linux build

Also apply the fixes for aarch64-darwin unconditionall.
This commit is contained in:
Steven Keuchel 2024-08-31 11:34:24 +02:00
parent 658d2c49e9
commit 2e41a59bbb
No known key found for this signature in database
GPG Key ID: 5877DEE97428557F

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;