Merge pull request #85653 from veprbl/pr/darwin_binutils_add_man
darwin.binutils: propagate man pages from darwin.cctools
This commit is contained in:
commit
2da19f9483
@ -85,7 +85,7 @@ stdenv.mkDerivation {
|
||||
|
||||
inherit targetPrefix infixSalt;
|
||||
|
||||
outputs = [ "out" ] ++ optionals propagateDoc [ "man" "info" ];
|
||||
outputs = [ "out" ] ++ optionals propagateDoc ([ "man" ] ++ optional (bintools ? info) "info");
|
||||
|
||||
passthru = {
|
||||
inherit bintools libc nativeTools nativeLibc nativePrefix;
|
||||
@ -259,14 +259,15 @@ stdenv.mkDerivation {
|
||||
printWords ${bintools_bin} ${if libc == null then "" else libc_bin} > $out/nix-support/propagated-user-env-packages
|
||||
''
|
||||
|
||||
+ optionalString propagateDoc ''
|
||||
+ optionalString propagateDoc (''
|
||||
##
|
||||
## Man page and info support
|
||||
##
|
||||
|
||||
ln -s ${bintools.man} $man
|
||||
'' + optionalString (bintools ? info) ''
|
||||
ln -s ${bintools.info} $info
|
||||
''
|
||||
'')
|
||||
|
||||
+ ''
|
||||
##
|
||||
|
@ -16,7 +16,7 @@ in
|
||||
stdenv.mkDerivation {
|
||||
pname = "${targetPrefix}cctools-binutils-darwin";
|
||||
inherit (cctools) version;
|
||||
outputs = [ "out" "info" "man" ];
|
||||
outputs = [ "out" "man" ];
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin $out/include
|
||||
|
||||
@ -42,12 +42,13 @@ stdenv.mkDerivation {
|
||||
|
||||
ln -s ${cctools}/libexec $out/libexec
|
||||
|
||||
mkdir -p "$info/nix-support" "$man/nix-support"
|
||||
printWords ${binutils-unwrapped.info} \
|
||||
>> $info/nix-support/propagated-build-inputs
|
||||
# FIXME: cctools missing man pages
|
||||
printWords ${binutils-unwrapped.man} \
|
||||
>> $man/nix-support/propagated-build-inputs
|
||||
mkdir -p "$man"/share/man/man{1,5}
|
||||
for i in ${builtins.concatStringsSep " " cmds}; do
|
||||
for path in "${cctools.man}"/share/man/man?/$i.*; do
|
||||
dest_path="$man''${path#${cctools.man}}"
|
||||
ln -sv "$path" "$dest_path"
|
||||
done
|
||||
done
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, autoreconfHook
|
||||
, installShellFiles
|
||||
, libcxxabi, libuuid
|
||||
, libobjc ? null, maloader ? null
|
||||
, enableTapiSupport ? true, libtapi
|
||||
@ -28,9 +29,9 @@ let
|
||||
sha256 = "0h8b1my0wf1jyjq63wbiqkl2clgxsf87f6i4fjhqs431fzlq8sac";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
nativeBuildInputs = [ autoconf automake libtool autoreconfHook ];
|
||||
nativeBuildInputs = [ autoconf automake libtool autoreconfHook installShellFiles ];
|
||||
buildInputs = [ libuuid ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi libobjc ]
|
||||
++ stdenv.lib.optional enableTapiSupport libtapi;
|
||||
@ -88,6 +89,8 @@ let
|
||||
pushd include
|
||||
make DSTROOT=$out/include RC_OS=common install
|
||||
popd
|
||||
|
||||
installManPage ar/ar.{1,5}
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
|
Loading…
Reference in New Issue
Block a user