summary refs log tree commit diff
path: root/lib/customisation.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/customisation.nix')
-rw-r--r--lib/customisation.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix
index 66260c8a486..35538641aa8 100644
--- a/lib/customisation.nix
+++ b/lib/customisation.nix
@@ -65,6 +65,11 @@ rec {
         overrideDerivation = newArgs: overridePackage (self: super: {
           val = lib.overrideDerivation super.val newArgs;
         });
+
+        ${if val ? overrideAttrs then "overrideAttrs" else null} = fdrv:
+          overridePackage (self: super: {
+            val = super.val.overrideAttrs fdrv;
+          });
       })) // (lib.optionalAttrs (builtins.isFunction val) {
         __functor = _: val;
         extend = throw "extend not yet supported for functors";