nixpkgs/pkgs/os-specific/bsd/netbsd/pkgs/man.nix
John Ericson b6727bbeac netbsd: Fetch source once
The big `fetchCVS` is slow, but a one-time cost. Everything else is much
faster, and not having to manage a gazillion `version` and `sha256`
fields is much easier.

This brings NetBSD in line with how we do FreeBSD and OpenBSD.
2024-06-18 14:11:29 -04:00

16 lines
465 B
Nix

{ mkDerivation, defaultMakeFlags }:
mkDerivation {
path = "share/man";
noCC = true;
# man0 generates a man.pdf using ps2pdf, but doesn't install it later,
# so we can avoid the dependency on ghostscript
postPatch = ''
substituteInPlace $COMPONENT_PATH/man0/Makefile --replace "ps2pdf" "echo noop "
'';
makeFlags = defaultMakeFlags ++ [
"FILESDIR=$(out)/share"
"MKRUMP=no" # would require to have additional path sys/rump/share/man
];
}