From 049d684ffc8fba87f767a3eece293f6dec5ed8c2 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 1 Nov 2022 03:38:27 +0100 Subject: [PATCH] asl: fix build on aarch64-darwin --- pkgs/development/compilers/asl/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/asl/default.nix b/pkgs/development/compilers/asl/default.nix index b02847b05939..cfc44c717e08 100644 --- a/pkgs/development/compilers/asl/default.nix +++ b/pkgs/development/compilers/asl/default.nix @@ -18,6 +18,8 @@ stdenv.mkDerivation rec { postPatch = lib.optionalString (!buildDocs) '' substituteInPlace Makefile --replace "all: binaries docs" "all: binaries" + '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' + substituteInPlace sysdefs.h --replace "x86_64" "aarch64" ''; dontConfigure = true;