summary refs log tree commit diff
path: root/lib/customisation.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-01-28 11:24:18 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-01-28 11:24:18 +0100
commitab8a691d059b364c435a1871ae2ef70a578685d8 (patch)
treea9158496e379970c0cb25b4068488c46fccc3f16 /lib/customisation.nix
parenta33fcc873110a6ded62f3286d9850ac5a445df89 (diff)
downloadnixpkgs-ab8a691d059b364c435a1871ae2ef70a578685d8.tar
nixpkgs-ab8a691d059b364c435a1871ae2ef70a578685d8.tar.gz
nixpkgs-ab8a691d059b364c435a1871ae2ef70a578685d8.tar.bz2
nixpkgs-ab8a691d059b364c435a1871ae2ef70a578685d8.tar.lz
nixpkgs-ab8a691d059b364c435a1871ae2ef70a578685d8.tar.xz
nixpkgs-ab8a691d059b364c435a1871ae2ef70a578685d8.tar.zst
nixpkgs-ab8a691d059b364c435a1871ae2ef70a578685d8.zip
nixos systemPackages: rework default outputs
- Now `pkg.outputUnspecified = true` but this attribute is missing in
  every output, so we can recognize whether the user chose or not.
  If (s)he didn't choose, we put `pkg.bin or pkg.out or pkg` into
  `systemPackages`.
- `outputsToLink` is replaced by `extraOutputsToLink`.
  We add extra outputs *regardless* of whether the user chose anything.
  It's mainly meant for outputs with docs and debug symbols.
- Note that as a result, some libraries will disappear from system path.
Diffstat (limited to 'lib/customisation.nix')
-rw-r--r--lib/customisation.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix
index 585495469b2..efe82d78660 100644
--- a/lib/customisation.nix
+++ b/lib/customisation.nix
@@ -129,7 +129,7 @@ rec {
         };
 
       outputsList = map outputToAttrListElement outputs;
-  in commonAttrs.${drv.outputName};
+  in commonAttrs // { outputUnspecified = true; };
 
 
   /* Strip a derivation of all non-essential attributes, returning