pkg-config: Multiple outputs
This is good practice, and will help with tests. Wrapper adjust to match bintools-wrapper re these new outputs.
This commit is contained in:
parent
42b2035730
commit
f29919da61
@ -36,7 +36,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
inherit targetPrefix suffixSalt;
|
inherit targetPrefix suffixSalt;
|
||||||
|
|
||||||
outputs = [ "out" ] ++ optionals propagateDoc [ "man" ];
|
outputs = [ "out" ] ++ optionals propagateDoc ([ "man" ] ++ optional (pkg-config ? doc) "doc");
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit pkg-config;
|
inherit pkg-config;
|
||||||
@ -87,13 +87,15 @@ stdenv.mkDerivation {
|
|||||||
printWords ${pkg-config} > $out/nix-support/propagated-user-env-packages
|
printWords ${pkg-config} > $out/nix-support/propagated-user-env-packages
|
||||||
''
|
''
|
||||||
|
|
||||||
+ optionalString propagateDoc ''
|
+ optionalString propagateDoc (''
|
||||||
##
|
##
|
||||||
## Man page and info support
|
## Man page and doc support
|
||||||
##
|
##
|
||||||
|
|
||||||
ln -s ${pkg-config.man} $man
|
ln -s ${pkg-config.man} $man
|
||||||
''
|
'' + optionalString (pkg-config ? doc) ''
|
||||||
|
ln -s ${pkg-config.doc} $doc
|
||||||
|
'')
|
||||||
|
|
||||||
+ ''
|
+ ''
|
||||||
substituteAll ${./add-flags.sh} $out/nix-support/add-flags.sh
|
substituteAll ${./add-flags.sh} $out/nix-support/add-flags.sh
|
||||||
|
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "14fmwzki1rlz8bs2p810lk6jqdxsk966d8drgsjmi54cd00rrikg";
|
sha256 = "14fmwzki1rlz8bs2p810lk6jqdxsk966d8drgsjmi54cd00rrikg";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "man" "doc" ];
|
||||||
|
|
||||||
# Process Requires.private properly, see
|
# Process Requires.private properly, see
|
||||||
# http://bugs.freedesktop.org/show_bug.cgi?id=4738, migrated to
|
# http://bugs.freedesktop.org/show_bug.cgi?id=4738, migrated to
|
||||||
# https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/28
|
# https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/28
|
||||||
|
Loading…
Reference in New Issue
Block a user