addAttrsToDerivation
pkgs.addAttrsToDerivation
Docs pulled from | This Revision | 10 minutes ago
Modify a stdenv so that the specified attributes are added to every derivation returned by its mkDerivation function.
Inputs
extraAttrs
-
1. Function argument
stdenv
-
2. Function argument
Examples
addAttrsToDerivation
usage example
stdenvNoOptimise =
addAttrsToDerivation
{ env.NIX_CFLAGS_COMPILE = "-O0"; }
stdenv;
Noogle detected
Implementation
The following is the current implementation of this function.
addAttrsToDerivation =
extraAttrs: stdenv:
stdenv.override (old: {
mkDerivationFromStdenv = extendMkDerivationArgs old (_: extraAttrs);
});