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 { lib, stdenv, fetchurl 2 , coreutils, cctools 3 , ncurses, libiconv, libX11, libuuid, testers 4 }: 5 ··· 12 hash = "sha256-03GZASte0ZhcQGnWqH/xjl4fWi3yfkApkfr0XcTyIyw="; 13 }; 14 15 - nativeBuildInputs = lib.optional stdenv.isDarwin cctools; 16 buildInputs = [ ncurses libiconv libX11 libuuid ]; 17 18 enableParallelBuilding = true; ··· 20 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation"; 21 22 /* 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 27 ** paths in some helper scripts, otherwise the build will fail on 28 ** NixOS or in any chroot build. 29 */
··· 1 { lib, stdenv, fetchurl 2 , coreutils, cctools 3 + , darwin 4 , ncurses, libiconv, libX11, libuuid, testers 5 }: 6 ··· 13 hash = "sha256-03GZASte0ZhcQGnWqH/xjl4fWi3yfkApkfr0XcTyIyw="; 14 }; 15 16 + nativeBuildInputs = lib.optionals stdenv.isDarwin [ 17 + cctools 18 + ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ 19 + darwin.autoSignDarwinBinariesHook 20 + ]; 21 buildInputs = [ ncurses libiconv libX11 libuuid ]; 22 23 enableParallelBuilding = true; ··· 25 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation"; 26 27 /* 28 + ** We have to fix a few occurrences to tools with absolute 29 ** paths in some helper scripts, otherwise the build will fail on 30 ** NixOS or in any chroot build. 31 */