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