mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 09:23:37 +00:00
56c2439a45
9d4e3b597fded2aee92cb7a7b2195072f812a6d3 but for OpenBSD instead of NetBSD.
52 lines
765 B
Nix
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;
|
|
}
|