diff --git a/pkgs/os-specific/darwin/by-name/ne/network_cmds/package.nix b/pkgs/os-specific/darwin/by-name/ne/network_cmds/package.nix index 51455f86897f..39faf051ad14 100644 --- a/pkgs/os-specific/darwin/by-name/ne/network_cmds/package.nix +++ b/pkgs/os-specific/darwin/by-name/ne/network_cmds/package.nix @@ -32,17 +32,16 @@ let '${xnu}/libkern/firehose/firehose_types_private.h' \ '${xnu}/libkern/firehose/tracepoint_private.h' - for dir in arm i386 kern machine; do + for dir in arm kern machine; do mkdir -p "$out/include/$dir" for file in '${xnuHeaders}/include/'$dir/*; do name=$(basename "$file") - # Skip copying `endian.h` because it conflicts with the SDK, breaking the build on x86_64-darwin. + # Skip copying `endian.h` because it conflicts with the SDK, breaking the build. test "$name" != endian.h && cp -r "$file" "$out/include/$dir/$name" done done unifdef -x 1 -DKERNEL_PRIVATE -o "$out/include/arm/locks.h" '${xnu}/osfmk/arm/locks.h' - unifdef -x 1 -DKERNEL_PRIVATE -o "$out/include/i386/locks.h" '${xnu}/osfmk/i386/locks.h' install -D -t "$out/include/net" \ '${xnuHeaders}/include/net/bpf.h' \