git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #146134 from sternenseemann/netbsd-man-fix

netbsd.man: fix build

commit108f913823dc1977b57e34bf86818c08fad8536d authorsterni <sternenseemann@systemli.org> dateMon 22 Nov 2021, 12:14 (5 years ago) parentc797a80c271888
1 file changed+9−1
pkgs/os-specific/bsd/netbsd/default.nix+9−1
pkgs/os-specific/bsd/netbsd/default.nix+9−1
@@ -966,7 +966,15 @@ in lib.makeScopeWithSplicing
966966 noCC = true;
967967 version = "9.2";
968968 sha256 = "1l4lmj4kmg8dl86x94sr45w0xdnkz8dn4zjx0ipgr9bnq98663zl";
969− makeFlags = defaultMakeFlags ++ [ "FILESDIR=$(out)/share" ];
969+ # man0 generates a man.pdf using ps2pdf, but doesn't install it later,
970+ # so we can avoid the dependency on ghostscript
971+ postPatch = ''
972+ substituteInPlace man0/Makefile --replace "ps2pdf" "echo noop "
973+ '';
974+ makeFlags = defaultMakeFlags ++ [
975+ "FILESDIR=$(out)/share"
976+ "MKRUMP=no" # would require to have additional path sys/rump/share/man
977+ ];
970978 };
971979 #
972980 # END MISCELLANEOUS