1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
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 adding gis system grass (graphviz 3d is not supported yet) 2010-06-03 15:19:59 +00:00
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 Added licenses to the lib attributeset 2010-02-25 13:09:08 +00:00
licenses.nix - zfs 0.6.0-rc11, spl 0.6.0-rc11 2012-10-05 09:11:25 -07:00
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 Replace some calls to attrByPath with "or" 2012-08-13 15:15:16 -04:00
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 cleanSource: Avoid copying git files. 2009-07-06 16:19:52 +00:00
strings-with-deps.nix * Add stringAfter' as a synonym of fullDepEntry', with the arguments 2010-09-13 15:31:06 +00:00
strings.nix pkgs/lib/strings.nix: strip trailing whitespace 2013-02-24 19:28:38 +01:00
systems.nix Add armv7l support. 2012-04-15 23:41:25 +00:00
tests.nix fix sort in lists.nix 2012-11-20 13:56:14 +01:00
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