From 9a824f2f1dd01450e6f7270246f77210d4c9c2a5 Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Mon, 14 Mar 2016 12:19:37 +0100 Subject: treewide: rename extraOutputs{ToLink,ToInstall} This is to get more consistent with `meta.outputsToInstall`. --- nixos/modules/config/debug-info.nix | 2 +- nixos/modules/config/system-path.nix | 4 ++-- nixos/modules/programs/man.nix | 2 +- pkgs/build-support/buildenv/default.nix | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/modules/config/debug-info.nix b/nixos/modules/config/debug-info.nix index 777ae71eebfb..17cb862d2916 100644 --- a/nixos/modules/config/debug-info.nix +++ b/nixos/modules/config/debug-info.nix @@ -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"; }; diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix index 69830683d9c5..d7815324c4c4 100644 --- a/nixos/modules/config/system-path.nix +++ b/nixos/modules/config/system-path.nix @@ -73,7 +73,7 @@ in description = "List of directories to be symlinked in /run/current-system/sw."; }; - 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 diff --git a/nixos/modules/programs/man.nix b/nixos/modules/programs/man.nix index 94d026fdaef0..201144ccb451 100644 --- a/nixos/modules/programs/man.nix +++ b/nixos/modules/programs/man.nix @@ -23,7 +23,7 @@ with lib; environment.pathsToLink = [ "/share/man" ]; - environment.extraOutputsToLink = [ "man" ]; + environment.extraOutputsToInstall = [ "man" ]; }; diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index 10f7c69c3aa1..8b2167a8e74f 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -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; -- cgit 1.4.1