treewide: rename extraOutputs{ToLink,ToInstall}

This is to get more consistent with `meta.outputsToInstall`.
This commit is contained in:
Vladimír Čunát 2016-03-14 12:19:37 +01:00
parent 2995439003
commit 9a824f2f1d
4 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ with lib;
# environment.pathsToLink, and we can't have both.
#environment.pathsToLink = [ "/lib/debug/.build-id" ];
environment.extraOutputsToLink =
environment.extraOutputsToInstall =
optional config.environment.enableDebugInfo "debug";
};

View File

@ -73,7 +73,7 @@ in
description = "List of directories to be symlinked in <filename>/run/current-system/sw</filename>.";
};
extraOutputsToLink = mkOption {
extraOutputsToInstall = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "doc" "info" "docdev" ];
@ -123,7 +123,7 @@ in
system.path = pkgs.buildEnv {
name = "system-path";
paths = config.environment.systemPackages;
inherit (config.environment) pathsToLink extraOutputsToLink;
inherit (config.environment) pathsToLink extraOutputsToInstall;
ignoreCollisions = true;
# !!! Hacky, should modularise.
# outputs TODO: note that the tools will often not be linked by default

View File

@ -23,7 +23,7 @@ with lib;
environment.pathsToLink = [ "/share/man" ];
environment.extraOutputsToLink = [ "man" ];
environment.extraOutputsToInstall = [ "man" ];
};

View File

@ -27,7 +27,7 @@
, # The package outputs to include. By default, only the default
# output is included.
extraOutputsToLink ? []
extraOutputsToInstall ? []
, # Root the result in directory "$out${extraPrefix}", e.g. "/share".
extraPrefix ? ""
@ -55,7 +55,7 @@ runCommand name
else [ drv ])
# Add any extra outputs specified by the caller of `buildEnv`.
++ lib.filter (p: p!=null)
(builtins.map (outName: drv.${outName} or null) extraOutputsToLink);
(builtins.map (outName: drv.${outName} or null) extraOutputsToInstall);
priority = drv.meta.priority or 5;
}) paths);
preferLocalBuild = true;