From 99806c5e12bd02926981ebf2d0b779c683b801ee Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 28 Nov 2017 17:16:09 -0500 Subject: bintools-wrapper: Create man and info outputs propagated underlying ones These will be installed if the wrappers are. The wrappers aren't very good to install, but that's another matter. --- pkgs/build-support/bintools-wrapper/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index dc157acc6cc2..0dcae204824d 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -82,7 +82,7 @@ stdenv.mkDerivation { inherit targetPrefix infixSalt; - outputs = [ "out" "man" ]; + outputs = [ "out" "info" "man" ]; passthru = { inherit bintools libc nativeTools nativeLibc nativePrefix; @@ -110,7 +110,7 @@ stdenv.mkDerivation { '' set -u - mkdir -p $out/bin $out/nix-support $man/nix-support + mkdir -p $out/bin {$out,$info,$man}/nix-support wrap() { local dst="$1" @@ -231,6 +231,15 @@ stdenv.mkDerivation { # install the wrapper, you get tools like objdump, the manpages, # etc. as well (same for any binaries of libc). printWords ${bintools_bin} ${if libc == null then "" else libc_bin} > $out/nix-support/propagated-user-env-packages + + ## + ## Man page and info support + ## + + printWords ${bintools.info or ""} \ + >> $info/nix-support/propagated-build-inputs + printWords ${bintools.man or ""} \ + >> $man/nix-support/propagated-build-inputs '' + '' -- cgit 1.4.1