nixpkgs/pkgs/build-support/cc-wrapper
Jan Malakhovski d32f51c618 cc-wrapper, bintools-wrapper: simply symlink man and info outputs
With the previous commit `propagateDoc` is now always given the correct value
(i.e. it is never set to `true` when there are no `man` and `info` outputs).
Hence, we can simply symlink the original outputs to the wrapper outputs.

Pros:

- simpler, less indirection compared to `propagated-user-env-packages`,
- uses less inodes (1 symlink, which nix then simply automatically resolves
  and removes, vs. two directories and a file),
- makes direct references like "export MANPATH=${stdenv.cc.man}/share/man"
  simply work.

Cons:

- I'm not aware of any.

This and the previous commit together almost completely revert commits
fde7296a47,
fa41297209, and
c981787db9.
2018-11-07 08:37:51 +00:00
..
add-flags.sh Merge pull request #40139 from obsidiansystems/modular-setup-hooks 2018-05-07 15:32:10 -04:00
add-hardening.sh {cc,bintools}-wrapper: fix removal of unsupported hardening flags 2018-04-14 15:16:34 +01:00
cc-wrapper.sh Re-Revert "Merge #44221: default for NIX_CXXSTDLIB_COMPILE" 2018-07-31 09:48:16 +02:00
default.nix cc-wrapper, bintools-wrapper: simply symlink man and info outputs 2018-11-07 08:37:51 +00:00
setup-hook.sh Revert "Merge pull request #44767 from obsidiansystems/wrapper-env-var-path" 2018-08-22 01:14:53 +02:00