From 3d39c9e9312565ebf68d860031cca2360411d6ed Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Mon, 27 Dec 2021 16:59:54 +0200 Subject: [PATCH] cdrtools: fix aarch64-darwin build --- pkgs/tools/cd-dvd/cdrtools/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/cd-dvd/cdrtools/default.nix b/pkgs/tools/cd-dvd/cdrtools/default.nix index bca1a1c689c3..f49826b99bfa 100644 --- a/pkgs/tools/cd-dvd/cdrtools/default.nix +++ b/pkgs/tools/cd-dvd/cdrtools/default.nix @@ -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;