From 02c09e01712ce0b61e5c8f7159047699a434f7fc Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Mon, 6 Aug 2018 15:26:51 +0000 Subject: cc-wrapper, bintools-wrapper: simply symlink man and info outputs See discussion in #44516. --- pkgs/build-support/cc-wrapper/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pkgs/build-support/cc-wrapper') diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index b9828c941ed2..8928d1643c83 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 '' + '' -- cgit 1.4.1