From 39b64b52ed349bb7b6f26f50013335d76d1605f6 Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Fri, 19 Aug 2016 22:21:32 -0400 Subject: mkDerivation: add overrideAttrs function This is similar to `overrideDerivation`, but overrides the arguments to `mkDerivation` instead of the underlying `derivation` call. Also update `makeOverridable` so that uses of `overrideAttrs` can be followed by `override` and `overrideDerivation`, i.e. they can be mix-and-matched. --- pkgs/stdenv/generic/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/stdenv') diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index e71c2f770b9..489b6cbb426 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -227,6 +227,7 @@ let outputs = outputs'; } else { })))) ( { + overrideAttrs = f: mkDerivation (attrs // (f attrs)); # The meta attribute is passed in the resulting attribute set, # but it's not part of the actual derivation, i.e., it's not # passed to the builder and is not a dependency. But since we -- cgit 1.4.1