mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 15:54:32 +00:00
b6727bbeac
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.
16 lines
465 B
Nix
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
|
|
];
|
|
}
|