Skip to content

Commit

Permalink
netbsd.install: fix build with new Darwin SDK
Browse files Browse the repository at this point in the history
To avoid adding headers to the SDK it does not have normally
(`libutil.h`), darwin.libutil is not propagated. It must be included as
a build input when it is needed by packages.
  • Loading branch information
reckenrode committed Oct 8, 2024
1 parent 3c3568d commit e2334b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/os-specific/bsd/netbsd/pkgs/install/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
lib,
mkDerivation,
writeShellScript,
mtree,
Expand All @@ -10,7 +11,8 @@
groff,
compatIfNeeded,
fts,

darwin,
stdenv,
}:

# HACK: to ensure parent directories exist. This emulates GNU
Expand Down Expand Up @@ -42,7 +44,8 @@ mkDerivation {
# fts header is needed. glibc already has this header, but musl doesn't,
# so make sure pkgsMusl.netbsd.install still builds in case you want to
# remove it!
++ [ fts ];
++ [ fts ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];
installPhase = ''
runHook preInstall
Expand Down

0 comments on commit e2334b9

Please sign in to comment.