···11{ lib, stdenv, fetchurl
22, coreutils, cctools
33+, darwin
34, ncurses, libiconv, libX11, libuuid, testers
45}:
56···1213 hash = "sha256-03GZASte0ZhcQGnWqH/xjl4fWi3yfkApkfr0XcTyIyw=";
1314 };
14151515- nativeBuildInputs = lib.optional stdenv.isDarwin cctools;
1616+ nativeBuildInputs = lib.optionals stdenv.isDarwin [
1717+ cctools
1818+ ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
1919+ darwin.autoSignDarwinBinariesHook
2020+ ];
1621 buildInputs = [ ncurses libiconv libX11 libuuid ];
17221823 enableParallelBuilding = true;
···2025 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation";
21262227 /*
2323- ** We patch out a very annoying 'feature' in ./configure, which
2424- ** tries to use 'git' to update submodules.
2525- **
2626- ** We have to also fix a few occurrences to tools with absolute
2828+ ** We have to fix a few occurrences to tools with absolute
2729 ** paths in some helper scripts, otherwise the build will fail on
2830 ** NixOS or in any chroot build.
2931 */