diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index 3ac1e52f3092..163294cab1f8 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -269,9 +269,8 @@ stdenv.mkDerivation { ## Man page and info support ## - mkdir -p $man/nix-support $info/nix-support - echo ${bintools.man or ""} >> $man/nix-support/propagated-user-env-packages - echo ${bintools.info or ""} >> $info/nix-support/propagated-user-env-packages + ln -s ${bintools.man} $man + ln -s ${bintools.info} $info '' + '' diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 06aa9436bfc0..47c992d1f6ba 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -263,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-user-env-packages - printWords ${cc.info or ""} > $info/nix-support/propagated-user-env-packages + ln -s ${cc.man} $man + ln -s ${cc.info} $info '' + ''