Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

chez: Fix aarch64-darwin builds

+7 -5
+7 -5
pkgs/development/compilers/chez/default.nix
··· 1 1 { lib, stdenv, fetchurl 2 2 , coreutils, cctools 3 + , darwin 3 4 , ncurses, libiconv, libX11, libuuid, testers 4 5 }: 5 6 ··· 12 13 hash = "sha256-03GZASte0ZhcQGnWqH/xjl4fWi3yfkApkfr0XcTyIyw="; 13 14 }; 14 15 15 - nativeBuildInputs = lib.optional stdenv.isDarwin cctools; 16 + nativeBuildInputs = lib.optionals stdenv.isDarwin [ 17 + cctools 18 + ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ 19 + darwin.autoSignDarwinBinariesHook 20 + ]; 16 21 buildInputs = [ ncurses libiconv libX11 libuuid ]; 17 22 18 23 enableParallelBuilding = true; ··· 20 25 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation"; 21 26 22 27 /* 23 - ** We patch out a very annoying 'feature' in ./configure, which 24 - ** tries to use 'git' to update submodules. 25 - ** 26 - ** We have to also fix a few occurrences to tools with absolute 28 + ** We have to fix a few occurrences to tools with absolute 27 29 ** paths in some helper scripts, otherwise the build will fail on 28 30 ** NixOS or in any chroot build. 29 31 */