Put your function in a loop until the cycle (pun intended) breaks
gleam
1{
2 "nodes": {
3 "flakelight": {
4 "inputs": {
5 "nixpkgs": [
6 "nixpkgs"
7 ]
8 },
9 "locked": {
10 "lastModified": 1771852612,
11 "narHash": "sha256-QyuS1rpMQgwguwMZbi2PLhK37XaSOgQa3EIKbHzcjAU=",
12 "owner": "nix-community",
13 "repo": "flakelight",
14 "rev": "62f0f59c4a26648c133abdff88019a871fd32ed8",
15 "type": "github"
16 },
17 "original": {
18 "owner": "nix-community",
19 "repo": "flakelight",
20 "type": "github"
21 }
22 },
23 "flakelight-treefmt": {
24 "inputs": {
25 "flakelight": [
26 "flakelight"
27 ],
28 "treefmt-nix": "treefmt-nix"
29 },
30 "locked": {
31 "lastModified": 1771938406,
32 "narHash": "sha256-ApWBFFb/kll0k96Yf56PXzz2kEV3GvY8UsDQHvWb2o4=",
33 "owner": "m15a",
34 "repo": "flakelight-treefmt",
35 "rev": "1a38d202e5599bb464a8c135bcc2088dc1bdcbdc",
36 "type": "github"
37 },
38 "original": {
39 "owner": "m15a",
40 "repo": "flakelight-treefmt",
41 "type": "github"
42 }
43 },
44 "nixpkgs": {
45 "locked": {
46 "lastModified": 1772198003,
47 "narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=",
48 "owner": "NixOS",
49 "repo": "nixpkgs",
50 "rev": "dd9b079222d43e1943b6ebd802f04fd959dc8e61",
51 "type": "github"
52 },
53 "original": {
54 "owner": "NixOS",
55 "ref": "nixos-unstable",
56 "repo": "nixpkgs",
57 "type": "github"
58 }
59 },
60 "root": {
61 "inputs": {
62 "flakelight": "flakelight",
63 "flakelight-treefmt": "flakelight-treefmt",
64 "nixpkgs": "nixpkgs"
65 }
66 },
67 "treefmt-nix": {
68 "inputs": {
69 "nixpkgs": [
70 "flakelight-treefmt",
71 "flakelight",
72 "nixpkgs"
73 ]
74 },
75 "locked": {
76 "lastModified": 1770228511,
77 "narHash": "sha256-wQ6NJSuFqAEmIg2VMnLdCnUc0b7vslUohqqGGD+Fyxk=",
78 "owner": "numtide",
79 "repo": "treefmt-nix",
80 "rev": "337a4fe074be1042a35086f15481d763b8ddc0e7",
81 "type": "github"
82 },
83 "original": {
84 "owner": "numtide",
85 "repo": "treefmt-nix",
86 "type": "github"
87 }
88 }
89 },
90 "root": "root",
91 "version": 7
92}