diff options
author | sternenseemann <sternenseemann@systemli.org> | 2021-11-15 14:26:13 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2021-11-15 14:26:13 +0100 |
commit | c271888a89849aa9bb88b3eb0ce44008cbfe1b35 (patch) | |
tree | 3a46f60bee7c072e0238f34feab69984fea46575 /pkgs/os-specific/bsd | |
parent | 093d80687875ed18961b47c444a1d380b3b3cd02 (diff) | |
download | nixpkgs-c271888a89849aa9bb88b3eb0ce44008cbfe1b35.tar nixpkgs-c271888a89849aa9bb88b3eb0ce44008cbfe1b35.tar.gz nixpkgs-c271888a89849aa9bb88b3eb0ce44008cbfe1b35.tar.bz2 nixpkgs-c271888a89849aa9bb88b3eb0ce44008cbfe1b35.tar.lz nixpkgs-c271888a89849aa9bb88b3eb0ce44008cbfe1b35.tar.xz nixpkgs-c271888a89849aa9bb88b3eb0ce44008cbfe1b35.tar.zst nixpkgs-c271888a89849aa9bb88b3eb0ce44008cbfe1b35.zip |
netbsd.man: fix build
* Fails because it's missing ps2pdf. In the beginning I fixed this by providing ghostscript as a nativeBuildInput, but the PDF created for man0 doesn't appear to be installed, so we can just patch out the call to the tool. * We need to disable MKRUMP or provide sys/rump/share/man in sourceRoot, opted for the former since it's simpler at the moment, but the latter is also possible with a custom unpackPhase.
Diffstat (limited to 'pkgs/os-specific/bsd')
-rw-r--r-- | pkgs/os-specific/bsd/netbsd/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/os-specific/bsd/netbsd/default.nix b/pkgs/os-specific/bsd/netbsd/default.nix index 5fd9bbc51a0..b438ea98a26 100644 --- a/pkgs/os-specific/bsd/netbsd/default.nix +++ b/pkgs/os-specific/bsd/netbsd/default.nix @@ -966,7 +966,15 @@ in lib.makeScopeWithSplicing noCC = true; version = "9.2"; sha256 = "1l4lmj4kmg8dl86x94sr45w0xdnkz8dn4zjx0ipgr9bnq98663zl"; - makeFlags = defaultMakeFlags ++ [ "FILESDIR=$(out)/share" ]; + # man0 generates a man.pdf using ps2pdf, but doesn't install it later, + # so we can avoid the dependency on ghostscript + postPatch = '' + substituteInPlace man0/Makefile --replace "ps2pdf" "echo noop " + ''; + makeFlags = defaultMakeFlags ++ [ + "FILESDIR=$(out)/share" + "MKRUMP=no" # would require to have additional path sys/rump/share/man + ]; }; # # END MISCELLANEOUS |