diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2017-07-12 18:38:22 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2017-07-12 18:38:22 -0400 |
commit | 5a5f8613e09b9a94466e564b0d8fa18da022c34d (patch) | |
tree | 928e93d2327a29fbdb9dbb8a884937d17ec5cbcd /lib/customisation.nix | |
parent | e11dbc37103687fb0c57dce85209086b0d691a34 (diff) | |
download | nixlib-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar nixlib-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.gz nixlib-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.bz2 nixlib-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.lz nixlib-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.xz nixlib-5a5f8613e09b9a94466e564b0d8fa18da022c34d.tar.zst nixlib-5a5f8613e09b9a94466e564b0d8fa18da022c34d.zip |
Re-added `overrideAttrs` in `makeOverridable`
Diffstat (limited to 'lib/customisation.nix')
-rw-r--r-- | lib/customisation.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix index 66260c8a4863..35538641aa82 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"; |