mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
mandoc: allow makewhatis(8) to index the nix store
To make makewhatis(8) index manual pages which are symlinks to the nix store, we need to set READ_ALLOWED_PATH to include `builtins.storeDir`. For background and discussion see: https://inbox.vuxu.org/mandoc-tech/c9932669-e9d4-1454-8708-7c8e36967e8e@systemli.org/T/ This is a small change required as a prerequisite for #139333 which causes a mass-rebuild for darwin, so it has to go through staging. Since the change is trivial and has basically no chance of breaking anything, we'll let it go through staging on its own, the modules can be reviewed and merged into master later.
This commit is contained in:
parent
bb61b6aaef
commit
f16721775e
|
@ -42,6 +42,8 @@ stdenv.mkDerivation rec {
|
|||
SBINDIR="$PREFIX/bin"
|
||||
CC=${stdenv.cc.targetPrefix}cc
|
||||
AR=${stdenv.cc.bintools.targetPrefix}ar
|
||||
# Allow makewhatis(8) to follow symlinks from a manpath to the nix store
|
||||
READ_ALLOWED_PATH=${builtins.storeDir}
|
||||
# Bypass the locale(1)-based check for UTF-8 support since it causes trouble:
|
||||
# * We only have meaningful locale(1) implementations for glibc and macOS
|
||||
# * NetBSD's locale(1) (used for macOS) depends on mandoc
|
||||
|
|
Loading…
Reference in a new issue