nixpkgs/pkgs/lib
Shea Levy 98860f429d Add the addPassthru library function
With multiple outputs, adding attributes to a derivation without
changing the {drv,out}Path is no longer as trivial as simply using the
`//' operator, as we usually want to add the attribute to _each_ output,
and even if we only care about one that one output can be reached via
multiple paths.

For stdenv.mkDerivation, we already had code in place to add passthru
and meta attributes to derivations. This commit simply factors part of
that code out into a lib function addPassthru, which takes a derivation
and an attribute set and appends the attribute set to each output of the
derivation.

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-03-24 08:29:10 -04:00
..
attrsets.nix Add a library function ‘genAttrs’ 2013-03-06 16:33:01 +01:00
composable-derivation.nix
customisation.nix Add the addPassthru library function 2013-03-24 08:29:10 -04:00
debug.nix Remove unnecessary parentheses around if conditions 2012-12-28 19:54:15 +01:00
default.nix
licenses.nix
lists.nix Add deepSeq lib function 2013-02-01 00:39:26 -05:00
maintainers.nix Add myself to maintainers, remove 0.9.4, set maintainer for this packge to me 2013-03-08 22:59:54 +01:00
meta.nix Fix hiPrio. 2013-02-25 06:31:19 -05:00
misc.nix Remove unnecessary parentheses around if conditions 2012-12-28 19:54:15 +01:00
modules.nix Use "or" in a few places 2012-12-04 12:58:23 +01:00
options.nix
platforms.nix Adding some 'arm' as mesa platforms. Otherwise assertions won't let me 2013-02-17 15:55:47 +01:00
properties.nix Get rid of some error contexts that don't provide useful info 2012-12-04 12:58:22 +01:00
sources.nix
strings-with-deps.nix
strings.nix pkgs/lib/strings.nix: strip trailing whitespace 2013-02-24 19:28:38 +01:00
systems.nix
tests.nix
trivial.nix Document deepSeq 2013-02-04 07:20:14 -05:00
types.nix types.nix: Add a ‘lines’ type 2013-02-11 15:32:24 +01:00