summaryrefslogtreecommitdiffstats
path: root/lib/trivial.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-04-14 10:32:13 +0200
committerVladimír Čunát <vcunat@gmail.com>2017-04-14 10:32:13 +0200
commit24444513fb5cc0cf1f56c6b3b87bcdd36db8b101 (patch)
treeb856f7236de8e12ef201ababecb22e9b32a0e493 /lib/trivial.nix
parent3085e95a20349f957c793f22547363231fa471a8 (diff)
parent304d30ce3f22ca8b275236de6e2c2e7f6e0b1934 (diff)
Merge branch 'staging'
Diffstat (limited to 'lib/trivial.nix')
-rw-r--r--lib/trivial.nix9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix
index 62906339e605..6cdc869b300b 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: { })