mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
lib.fixed-points.toExtension: inherit binding
This commit is contained in:
@@ -509,13 +509,16 @@ rec {
|
||||
:::
|
||||
*/
|
||||
toExtension =
|
||||
let
|
||||
inherit (lib) isFunction;
|
||||
in
|
||||
f:
|
||||
if lib.isFunction f then
|
||||
if isFunction f then
|
||||
final: prev:
|
||||
let
|
||||
fPrev = f prev;
|
||||
in
|
||||
if lib.isFunction fPrev then
|
||||
if isFunction fPrev then
|
||||
# f is (final: prev: { ... })
|
||||
f final prev
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user