diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-04-14 10:32:13 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-04-14 10:32:13 +0200 |
commit | 24444513fb5cc0cf1f56c6b3b87bcdd36db8b101 (patch) | |
tree | b856f7236de8e12ef201ababecb22e9b32a0e493 /lib/trivial.nix | |
parent | 3085e95a20349f957c793f22547363231fa471a8 (diff) | |
parent | 304d30ce3f22ca8b275236de6e2c2e7f6e0b1934 (diff) |
Merge branch 'staging'
Diffstat (limited to 'lib/trivial.nix')
-rw-r--r-- | lib/trivial.nix | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix index 62906339e6058..6cdc869b300be 100644 --- a/lib/trivial.nix +++ b/lib/trivial.nix @@ -85,15 +85,6 @@ rec { # argument, but it's nice this way if several uses of `extends` are cascaded. extends = f: rattrs: self: let super = rattrs self; in super // f self super; - # Compose two extending functions of the type expected by 'extends' - # into one where changes made in the first are available in the - # 'super' of the second - composeExtensions = - f: g: self: super: - let fApplied = f self super; - super' = super // fApplied; - in fApplied // g self super'; - # Create an overridable, recursive attribute set. For example: # # nix-repl> obj = makeExtensible (self: { }) |