summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-08-06 15:26:51 +0000
committerJan Malakhovski <oxij@oxij.org>2018-08-06 20:50:16 +0000
commit02c09e01712ce0b61e5c8f7159047699a434f7fc (patch)
tree54a7675e303e0f0a830ecfd0d118a11569762144 /pkgs/build-support/cc-wrapper
parent28ad0703f3db92a3cbb8b1249101e0ff4e3616f6 (diff)
downloadnixpkgs-02c09e01712ce0b61e5c8f7159047699a434f7fc.tar
nixpkgs-02c09e01712ce0b61e5c8f7159047699a434f7fc.tar.gz
nixpkgs-02c09e01712ce0b61e5c8f7159047699a434f7fc.tar.bz2
nixpkgs-02c09e01712ce0b61e5c8f7159047699a434f7fc.tar.lz
nixpkgs-02c09e01712ce0b61e5c8f7159047699a434f7fc.tar.xz
nixpkgs-02c09e01712ce0b61e5c8f7159047699a434f7fc.tar.zst
nixpkgs-02c09e01712ce0b61e5c8f7159047699a434f7fc.zip
cc-wrapper, bintools-wrapper: simply symlink man and info outputs
See discussion in #44516.
Diffstat (limited to 'pkgs/build-support/cc-wrapper')
-rw-r--r--pkgs/build-support/cc-wrapper/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index b9828c941ed..8928d1643c8 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -6,8 +6,10 @@
 # compiler and the linker just "work".
 
 { name ? ""
-, stdenvNoCC, nativeTools, propagateDoc ? !nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
+, stdenvNoCC
 , cc ? null, libc ? null, bintools, coreutils ? null, shell ? stdenvNoCC.shell
+, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
+, propagateDoc ? !nativeTools && cc != null && cc ? man
 , extraPackages ? [], extraBuildCommands ? ""
 , isGNU ? false, isClang ? cc.isClang or false, gnugrep ? null
 , buildPackages ? {}
@@ -261,9 +263,8 @@ stdenv.mkDerivation {
       ## Man page and info support
       ##
 
-      mkdir -p $man/nix-support $info/nix-support
-      printWords ${cc.man or ""}  >> $man/nix-support/propagated-build-inputs
-      printWords ${cc.info or ""}  >> $info/nix-support/propagated-build-inputs
+      ln -s ${cc.man} $man
+      ln -s ${cc.info} $info
     ''
 
     + ''