summary refs log tree commit diff
path: root/lib/customisation.nix
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2017-07-12 18:38:22 -0400
committerWill Fancher <elvishjerricco@gmail.com>2017-07-12 18:38:22 -0400
commit5a5f8613e09b9a94466e564b0d8fa18da022c34d (patch)
tree928e93d2327a29fbdb9dbb8a884937d17ec5cbcd /lib/customisation.nix
parente11dbc37103687fb0c57dce85209086b0d691a34 (diff)
downloadnixpkgs-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar
nixpkgs-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.gz
nixpkgs-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.bz2
nixpkgs-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.lz
nixpkgs-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.xz
nixpkgs-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.zst
nixpkgs-5a5f8613e09b9a94466e564b0d8fa18da022c34d.zip
Re-added `overrideAttrs` in `makeOverridable`
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";