nixpkgs-suyu/pkgs/stdenv
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
..
generic Add the addPassthru library function 2013-03-24 08:29:10 -04:00
linux stdenv bootstrap: removing xz override from stdenvLinuxBoot4 2013-01-29 23:39:27 +01:00
mingw stdenv/setup.sh: Always run postPatch hook. 2013-02-27 15:26:18 +01:00
native Pass ‘config’ to stdenv/generic/default.nix 2013-01-17 23:24:55 +01:00
nix Pass ‘config’ to stdenv/generic/default.nix 2013-01-17 23:24:55 +01:00
adapters.nix More renames 2012-12-28 19:42:10 +01:00
common-path.nix
default.nix Pass ‘config’ to stdenv/generic/default.nix 2013-01-17 23:24:55 +01:00