1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

netbsd.install: fix build with new Darwin SDK

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.
This commit is contained in:
Randy Eckenrode 2024-09-05 19:50:38 -04:00
parent e694240f77
commit 5d128a9edc
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -1,4 +1,5 @@
{
lib,
mkDerivation,
writeShellScript,
mtree,
@ -10,7 +11,8 @@
groff,
compatIfNeeded,
fts,
darwin,
stdenv,
}:
# HACK: to ensure parent directories exist. This emulates GNU
@ -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