summary refs log tree commit diff
path: root/pkgs/tools/cd-dvd
diff options
context:
space:
mode:
authorMark Vainomaa <mikroskeem@mikroskeem.eu>2021-12-27 16:59:54 +0200
committerMark Vainomaa <mikroskeem@mikroskeem.eu>2021-12-27 17:24:12 +0200
commit3d39c9e9312565ebf68d860031cca2360411d6ed (patch)
tree1a5376ed89191d80d87c69b3ffb0757d56ddb2d9 /pkgs/tools/cd-dvd
parent0736e7e3a90fb6d2ff6e11c077918220a253c9bc (diff)
downloadnixpkgs-3d39c9e9312565ebf68d860031cca2360411d6ed.tar
nixpkgs-3d39c9e9312565ebf68d860031cca2360411d6ed.tar.gz
nixpkgs-3d39c9e9312565ebf68d860031cca2360411d6ed.tar.bz2
nixpkgs-3d39c9e9312565ebf68d860031cca2360411d6ed.tar.lz
nixpkgs-3d39c9e9312565ebf68d860031cca2360411d6ed.tar.xz
nixpkgs-3d39c9e9312565ebf68d860031cca2360411d6ed.tar.zst
nixpkgs-3d39c9e9312565ebf68d860031cca2360411d6ed.zip
cdrtools: fix aarch64-darwin build
Diffstat (limited to 'pkgs/tools/cd-dvd')
-rw-r--r--pkgs/tools/cd-dvd/cdrtools/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/cd-dvd/cdrtools/default.nix b/pkgs/tools/cd-dvd/cdrtools/default.nix
index bca1a1c689c..f49826b99bf 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;