nixpkgs/pkgs/os-specific/bsd/netbsd/pkgs/libutil.nix
John Ericson 56c2439a45 openbsd.libc: Create from constituent pkgs not hack
9d4e3b597fded2aee92cb7a7b2195072f812a6d3 but for OpenBSD instead of
NetBSD.
2024-06-29 12:48:30 -04:00

52 lines
765 B
Nix

{
lib,
stdenvLibcMinimal,
mkDerivation,
bsdSetupHook,
netbsdSetupHook,
makeMinimal,
byacc,
install,
tsort,
lorder,
mandoc,
statHook,
}:
mkDerivation {
path = "lib/libutil";
libcMinimal = true;
outputs = [
"out"
"man"
];
nativeBuildInputs = [
bsdSetupHook
netbsdSetupHook
makeMinimal
byacc
install
tsort
lorder
mandoc
statHook
];
SHLIBINSTALLDIR = "$(out)/lib";
# Hack around GCC's limits.h missing the include_next we want See
# https://gcc.gnu.org/legacy-ml/gcc/2003-10/msg01278.html
NIX_CFLAGS_COMPILE_BEFORE = "-isystem ${stdenvLibcMinimal.cc.libc.dev}/include";
extraPaths = [
"common"
"lib/libc"
"sys"
];
meta.platforms = lib.platforms.netbsd;
}