freebsd.geom: split outputs; link gpart manpage

This commit is contained in:
Audrey Dutcher
2025-03-13 17:48:14 -07:00
parent 97b2789fc5
commit 9543cc5ecc
2 changed files with 25 additions and 0 deletions
@@ -1,4 +1,5 @@
{
lib,
mkDerivation,
libgeom,
libufs,
@@ -18,6 +19,12 @@ let
"sys/opencrypto"
];
outputs = [
"out"
"man"
"debug"
];
# libgeom needs sbuf and bsdxml but linker doesn't know that
buildInputs = [
libgeom
@@ -37,8 +44,19 @@ mkDerivation {
"lib/Makefile.inc"
"lib/geom"
];
outputs = [
"out"
"man"
"debug"
];
GEOM_CLASS_DIR = "${libs}/lib";
# link in man pages from libs
postInstall = ''
mkdir -p $man/share/man/man8
ln -s ${lib.getMan libs}/share/man/man8/*.8* $man/share/man/man8/
'';
buildInputs = [ libgeom ];
}
@@ -5,6 +5,13 @@
}:
mkDerivation {
path = "lib/libgeom";
outputs = [
"out"
"man"
"debug"
];
buildInputs = [
libbsdxml
libsbuf