A flake checker (treefmt & nix-unit) for testing other flakes with zero dependencies.

dogfood: test checkmate with checkmate (#4)

authored by oeiuwq.com and committed by GitHub b196737d 7add3291

+1 -1
.github/workflows/test.yml
··· 15 15 runs-on: ubuntu-latest 16 16 steps: 17 17 - uses: cachix/install-nix-action@v30 18 - - run: nix flake check -L github:$GITHUB_REPOSITORY/$GITHUB_SHA?dir=${{matrix.checker}} --override-input target github:$GITHUB_REPOSITORY/$GITHUB_SHA?dir=${{matrix.target}} 18 + - run: nix flake check -L github:$GITHUB_REPOSITORY/$GITHUB_SHA?dir=${{matrix.checker}} --override-input target github:$GITHUB_REPOSITORY/$GITHUB_SHA?dir=${{matrix.target}} --override-input checkmate github:$GITHUB_REPOSITORY/$GITHUB_SHA
+79 -26
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "checkmate": { 4 + "inputs": { 5 + "den": [ 6 + "den" 7 + ], 8 + "flake-aspects": [ 9 + "flake-aspects" 10 + ], 11 + "flake-file": [ 12 + "flake-file" 13 + ], 14 + "flake-parts": [ 15 + "flake-parts" 16 + ], 17 + "import-tree": [ 18 + "import-tree" 19 + ], 20 + "nix-unit": [ 21 + "nix-unit" 22 + ], 23 + "nixpkgs": [ 24 + "nixpkgs" 25 + ], 26 + "nixpkgs-lib": [ 27 + "nixpkgs" 28 + ], 29 + "systems": [ 30 + "systems" 31 + ], 32 + "target": [ 33 + "target" 34 + ], 35 + "treefmt-nix": [ 36 + "treefmt-nix" 37 + ] 38 + }, 39 + "locked": { 40 + "lastModified": 1763688964, 41 + "narHash": "sha256-xJ3g37BgPgIKNrUT9wo/QCDXpo5P/KZA3wjT9ETmc8o=", 42 + "owner": "vic", 43 + "repo": "checkmate", 44 + "rev": "7add32917422eb14bf09560f9686d19232745ae1", 45 + "type": "github" 46 + }, 47 + "original": { 48 + "owner": "vic", 49 + "repo": "checkmate", 50 + "type": "github" 51 + } 52 + }, 3 53 "den": { 4 54 "locked": { 5 - "lastModified": 1762754264, 6 - "narHash": "sha256-XS4kabx8lv/b+yzB8qIPSphPoaStm0qF7aQGNMQGnA8=", 55 + "lastModified": 1763683549, 56 + "narHash": "sha256-4RFihudu6lyfJh7fGZ7VwtrFC8rIguePbRVuOA8xLOs=", 7 57 "owner": "vic", 8 58 "repo": "den", 9 - "rev": "8843a561848d3b60e7a7bf132482f349bccf0607", 59 + "rev": "61ce6a5ecfabf1ef67fad45f4da59b0355eb43c0", 10 60 "type": "github" 11 61 }, 12 62 "original": { ··· 17 67 }, 18 68 "flake-aspects": { 19 69 "locked": { 20 - "lastModified": 1762465224, 21 - "narHash": "sha256-jfXLTwngKXwFOCVfCupHGcCw/OIpgy5lMYIF8KPfMN8=", 70 + "lastModified": 1763685186, 71 + "narHash": "sha256-q/5od9d1N6oErILS4CkShhUuO/ncifsqmNaSoWZTLQ4=", 22 72 "owner": "vic", 23 73 "repo": "flake-aspects", 24 - "rev": "4cbae79bc642311f45c211f9c20d20226544b6f9", 74 + "rev": "9efdc39329e43289925636c50d5a909527aad347", 25 75 "type": "github" 26 76 }, 27 77 "original": { ··· 32 82 }, 33 83 "flake-file": { 34 84 "locked": { 35 - "lastModified": 1762732765, 36 - "narHash": "sha256-sVxN4q4V8jhIAF44aPSMULIJMJ5eG5HtzcQgbr2UEBg=", 85 + "lastModified": 1763673987, 86 + "narHash": "sha256-BrRq6F321rwBPEC9yU2ZSV6At2TQ/0l/j9QrnXXAVWI=", 37 87 "owner": "vic", 38 88 "repo": "flake-file", 39 - "rev": "7b037ae446102d3ccc5e23d3c52d5ada8e0fc4f3", 89 + "rev": "fc92a095cd57b5d971a9d30fd24490101e588c28", 40 90 "type": "github" 41 91 }, 42 92 "original": { ··· 52 102 ] 53 103 }, 54 104 "locked": { 55 - "lastModified": 1762440070, 56 - "narHash": "sha256-xxdepIcb39UJ94+YydGP221rjnpkDZUlykKuF54PsqI=", 105 + "lastModified": 1762980239, 106 + "narHash": "sha256-8oNVE8TrD19ulHinjaqONf9QWCKK+w4url56cdStMpM=", 57 107 "owner": "hercules-ci", 58 108 "repo": "flake-parts", 59 - "rev": "26d05891e14c88eb4a5d5bee659c0db5afb609d8", 109 + "rev": "52a2caecc898d0b46b2b905f058ccc5081f842da", 60 110 "type": "github" 61 111 }, 62 112 "original": { ··· 67 117 }, 68 118 "import-tree": { 69 119 "locked": { 70 - "lastModified": 1762327901, 71 - "narHash": "sha256-AJ96FNj50DU0bTyIzAPkPOjCZTHqjURVjok8qoXvmqM=", 120 + "lastModified": 1763673815, 121 + "narHash": "sha256-vlkLsqaTqSVuIKA9xLPGmemXNekU3OVhpXs5HF1Nv14=", 72 122 "owner": "vic", 73 123 "repo": "import-tree", 74 - "rev": "90fa129798be99cde036b78658e89475710966a1", 124 + "rev": "6cef16391ec216f50847a5923100ee5ebc709c00", 75 125 "type": "github" 76 126 }, 77 127 "original": { ··· 128 178 }, 129 179 "nixpkgs": { 130 180 "locked": { 131 - "lastModified": 1762482733, 132 - "narHash": "sha256-g/da4FzvckvbiZT075Sb1/YDNDr+tGQgh4N8i5ceYMg=", 181 + "lastModified": 1763618868, 182 + "narHash": "sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r+JerayK/4wvdWA=", 133 183 "owner": "nixos", 134 184 "repo": "nixpkgs", 135 - "rev": "e1ebeec86b771e9d387dd02d82ffdc77ac753abc", 185 + "rev": "a8d610af3f1a5fb71e23e08434d8d61a466fc942", 136 186 "type": "github" 137 187 }, 138 188 "original": { ··· 144 194 }, 145 195 "root": { 146 196 "inputs": { 197 + "checkmate": "checkmate", 147 198 "den": "den", 148 199 "flake-aspects": "flake-aspects", 149 200 "flake-file": "flake-file", ··· 176 227 }, 177 228 "target": { 178 229 "locked": { 179 - "lastModified": 1762800004, 180 - "narHash": "sha256-VO8KzRYOgpVx36ZrJgyhKBIqs/LCSt75RVaCYxQv9TY=", 230 + "dir": "templates/success", 231 + "lastModified": 1763688964, 232 + "narHash": "sha256-xJ3g37BgPgIKNrUT9wo/QCDXpo5P/KZA3wjT9ETmc8o=", 181 233 "owner": "vic", 182 - "repo": "empty-flake", 183 - "rev": "d4e905be37fc824f49a14577a26e6121f59e4f9d", 234 + "repo": "checkmate", 235 + "rev": "7add32917422eb14bf09560f9686d19232745ae1", 184 236 "type": "github" 185 237 }, 186 238 "original": { 239 + "dir": "templates/success", 187 240 "owner": "vic", 188 - "repo": "empty-flake", 241 + "repo": "checkmate", 189 242 "type": "github" 190 243 } 191 244 }, ··· 217 270 ] 218 271 }, 219 272 "locked": { 220 - "lastModified": 1762410071, 221 - "narHash": "sha256-aF5fvoZeoXNPxT0bejFUBXeUjXfHLSL7g+mjR/p5TEg=", 273 + "lastModified": 1762938485, 274 + "narHash": "sha256-AlEObg0syDl+Spi4LsZIBrjw+snSVU4T8MOeuZJUJjM=", 222 275 "owner": "numtide", 223 276 "repo": "treefmt-nix", 224 - "rev": "97a30861b13c3731a84e09405414398fbf3e109f", 277 + "rev": "5b4ee75aeefd1e2d5a1cc43cf6ba65eba75e83e4", 225 278 "type": "github" 226 279 }, 227 280 "original": {
+27 -39
flake.nix
··· 5 5 outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules); 6 6 7 7 inputs = { 8 - den = { 9 - url = "github:vic/den"; 10 - }; 11 - flake-aspects = { 12 - url = "github:vic/flake-aspects"; 13 - }; 14 - flake-file = { 15 - url = "github:vic/flake-file"; 16 - }; 17 - flake-parts = { 8 + checkmate = { 18 9 inputs = { 19 - nixpkgs-lib = { 20 - follows = "nixpkgs-lib"; 21 - }; 10 + den.follows = "den"; 11 + flake-aspects.follows = "flake-aspects"; 12 + flake-file.follows = "flake-file"; 13 + flake-parts.follows = "flake-parts"; 14 + import-tree.follows = "import-tree"; 15 + nix-unit.follows = "nix-unit"; 16 + nixpkgs.follows = "nixpkgs"; 17 + nixpkgs-lib.follows = "nixpkgs"; 18 + systems.follows = "systems"; 19 + target.follows = "target"; 20 + treefmt-nix.follows = "treefmt-nix"; 22 21 }; 23 - url = "github:hercules-ci/flake-parts"; 22 + url = "github:vic/checkmate"; 24 23 }; 25 - import-tree = { 26 - url = "github:vic/import-tree"; 24 + den.url = "github:vic/den"; 25 + flake-aspects.url = "github:vic/flake-aspects"; 26 + flake-file.url = "github:vic/flake-file"; 27 + flake-parts = { 28 + inputs.nixpkgs-lib.follows = "nixpkgs-lib"; 29 + url = "github:hercules-ci/flake-parts"; 27 30 }; 31 + import-tree.url = "github:vic/import-tree"; 28 32 nix-unit = { 29 33 inputs = { 30 - flake-parts = { 31 - follows = "flake-parts"; 32 - }; 33 - nixpkgs = { 34 - follows = "nixpkgs"; 35 - }; 34 + flake-parts.follows = "flake-parts"; 35 + nixpkgs.follows = "nixpkgs"; 36 36 }; 37 37 url = "github:nix-community/nix-unit"; 38 38 }; 39 - nixpkgs = { 40 - url = "github:nixos/nixpkgs/nixpkgs-unstable"; 41 - }; 42 - nixpkgs-lib = { 43 - follows = "nixpkgs"; 44 - }; 45 - systems = { 46 - url = "github:nix-systems/default"; 47 - }; 48 - target = { 49 - url = "github:vic/empty-flake"; 50 - }; 39 + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 40 + nixpkgs-lib.follows = "nixpkgs"; 41 + systems.url = "github:nix-systems/default"; 42 + target.url = "github:vic/checkmate?dir=templates/success"; 51 43 treefmt-nix = { 52 - inputs = { 53 - nixpkgs = { 54 - follows = "nixpkgs"; 55 - }; 56 - }; 44 + inputs.nixpkgs.follows = "nixpkgs"; 57 45 url = "github:numtide/treefmt-nix"; 58 46 }; 59 47 };
+19
modules/checkmate/checkmate.nix
··· 1 + { lib, ... }: 2 + { 3 + flake-file.inputs.checkmate = { 4 + url = lib.mkDefault "github:vic/checkmate"; 5 + inputs = { 6 + den.follows = "den"; 7 + flake-aspects.follows = "flake-aspects"; 8 + flake-file.follows = "flake-file"; 9 + flake-parts.follows = "flake-parts"; 10 + import-tree.follows = "import-tree"; 11 + nix-unit.follows = "nix-unit"; 12 + nixpkgs.follows = "nixpkgs"; 13 + nixpkgs-lib.follows = "nixpkgs"; 14 + systems.follows = "systems"; 15 + target.follows = "target"; 16 + treefmt-nix.follows = "treefmt-nix"; 17 + }; 18 + }; 19 + }
+7
modules/checkmate/dendritic.nix
··· 1 + { inputs, lib, ... }: 2 + { 3 + flake-file.inputs.flake-file.url = lib.mkDefault "github:vic/flake-file"; 4 + imports = [ 5 + (inputs.flake-file.flakeModules.dendritic or { }) 6 + ]; 7 + }
-2
modules/checkmate/imports.nix modules/imports.nix
··· 1 1 { inputs, ... }: 2 2 let 3 - 4 3 im = 5 4 sub: 6 5 let 7 6 path = "${inputs.target}/${sub}"; 8 7 in 9 8 if builtins.pathExists path then inputs.import-tree path else { }; 10 - 11 9 in 12 10 { 13 11 imports = [
-29
modules/checkmate/inputs.nix
··· 1 - { 2 - inputs, 3 - lib, 4 - ... 5 - }: 6 - { 7 - 8 - flake-file.inputs = { 9 - flake-file.url = lib.mkDefault "github:vic/flake-file"; 10 - 11 - nix-unit = { 12 - url = lib.mkDefault "github:nix-community/nix-unit"; 13 - inputs.nixpkgs.follows = lib.mkDefault "nixpkgs"; 14 - inputs.flake-parts.follows = lib.mkDefault "flake-parts"; 15 - }; 16 - 17 - treefmt-nix = { 18 - url = lib.mkDefault "github:numtide/treefmt-nix"; 19 - inputs.nixpkgs.follows = lib.mkDefault "nixpkgs"; 20 - }; 21 - }; 22 - 23 - imports = [ 24 - (inputs.flake-file.flakeModules.dendritic or { }) 25 - (inputs.nix-unit.modules.flake.default or { }) 26 - (inputs.treefmt-nix.flakeModule or { }) 27 - ]; 28 - 29 - }
+17 -3
modules/checkmate/nix-unit.nix
··· 1 1 { inputs, lib, ... }: 2 2 { 3 - perSystem.nix-unit = { 4 - allowNetwork = lib.mkDefault true; 5 - inputs = lib.mkDefault inputs; 3 + flake-file.inputs.nix-unit = { 4 + url = lib.mkDefault "github:nix-community/nix-unit"; 5 + inputs.nixpkgs.follows = lib.mkDefault "nixpkgs"; 6 + inputs.flake-parts.follows = lib.mkDefault "flake-parts"; 6 7 }; 8 + 9 + imports = [ 10 + (inputs.nix-unit.modules.flake.default or { }) 11 + ]; 12 + 13 + perSystem = 14 + { lib, ... }: 15 + { 16 + nix-unit = { 17 + allowNetwork = lib.mkDefault true; 18 + inputs = lib.mkDefault inputs; 19 + }; 20 + }; 7 21 }
+4
modules/checkmate/target.nix
··· 1 + { lib, ... }: 2 + { 3 + flake-file.inputs.target.url = lib.mkDefault "github:vic/checkmate?dir=templates/success"; 4 + }
+11 -1
modules/checkmate/treefmt.nix
··· 1 - { inputs, ... }: 1 + { inputs, lib, ... }: 2 2 { 3 + 4 + flake-file.inputs.treefmt-nix = { 5 + url = lib.mkDefault "github:numtide/treefmt-nix"; 6 + inputs.nixpkgs.follows = lib.mkDefault "nixpkgs"; 7 + }; 8 + 9 + imports = [ 10 + (inputs.treefmt-nix.flakeModule or { }) 11 + ]; 12 + 3 13 perSystem = 4 14 { self', lib, ... }: 5 15 {
+12 -3
modules/outputs.nix
··· 1 - { ... }: 2 1 { 3 - flake-file.inputs.target.url = "github:vic/empty-flake"; 4 2 flake.templates.default = { 5 - description = "Success flake"; 3 + description = "Success"; 6 4 path = ../templates/success; 7 5 }; 6 + flake.templates.dendritic = { 7 + description = "Dendritic"; 8 + path = ../templates/dendritic; 9 + }; 10 + flake.flakeModule = 11 + { inputs, ... }: 12 + { 13 + imports = [ 14 + (inputs.import-tree ./checkmate) 15 + ]; 16 + }; 8 17 }
+133 -12
templates/dendritic/checkmate/flake.lock
··· 1 1 { 2 2 "nodes": { 3 - "checkmate-modules": { 4 - "flake": false, 3 + "checkmate": { 4 + "inputs": { 5 + "den": [ 6 + "den" 7 + ], 8 + "flake-aspects": [ 9 + "flake-aspects" 10 + ], 11 + "flake-file": [ 12 + "flake-file" 13 + ], 14 + "flake-parts": [ 15 + "flake-parts" 16 + ], 17 + "import-tree": [ 18 + "import-tree" 19 + ], 20 + "nix-unit": [ 21 + "nix-unit" 22 + ], 23 + "nixpkgs": [ 24 + "nixpkgs" 25 + ], 26 + "nixpkgs-lib": [ 27 + "nixpkgs" 28 + ], 29 + "systems": [ 30 + "systems" 31 + ], 32 + "target": [ 33 + "target" 34 + ], 35 + "treefmt-nix": [ 36 + "treefmt-nix" 37 + ] 38 + }, 5 39 "locked": { 6 - "dir": "modules/checkmate", 7 - "lastModified": 1763688069, 8 - "narHash": "sha256-1mK38cB+dTFh6gieuqWswqbWAbV/cGrqiR+r6ONSL5s=", 40 + "lastModified": 1763688964, 41 + "narHash": "sha256-xJ3g37BgPgIKNrUT9wo/QCDXpo5P/KZA3wjT9ETmc8o=", 9 42 "owner": "vic", 10 43 "repo": "checkmate", 11 - "rev": "52665a9ad341f0b11620aabbd8ede55af6638c06", 44 + "rev": "7add32917422eb14bf09560f9686d19232745ae1", 12 45 "type": "github" 13 46 }, 14 47 "original": { 15 - "dir": "modules/checkmate", 16 48 "owner": "vic", 17 49 "repo": "checkmate", 18 50 "type": "github" ··· 98 130 "type": "github" 99 131 } 100 132 }, 133 + "nix-github-actions": { 134 + "inputs": { 135 + "nixpkgs": [ 136 + "nix-unit", 137 + "nixpkgs" 138 + ] 139 + }, 140 + "locked": { 141 + "lastModified": 1737420293, 142 + "narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=", 143 + "owner": "nix-community", 144 + "repo": "nix-github-actions", 145 + "rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9", 146 + "type": "github" 147 + }, 148 + "original": { 149 + "owner": "nix-community", 150 + "repo": "nix-github-actions", 151 + "type": "github" 152 + } 153 + }, 154 + "nix-unit": { 155 + "inputs": { 156 + "flake-parts": [ 157 + "flake-parts" 158 + ], 159 + "nix-github-actions": "nix-github-actions", 160 + "nixpkgs": [ 161 + "nixpkgs" 162 + ], 163 + "treefmt-nix": "treefmt-nix" 164 + }, 165 + "locked": { 166 + "lastModified": 1762774186, 167 + "narHash": "sha256-hRADkHjNt41+JUHw2EiSkMaL4owL83g5ZppjYUdF/Dc=", 168 + "owner": "nix-community", 169 + "repo": "nix-unit", 170 + "rev": "1c9ab50554eed0b768f9e5b6f646d63c9673f0f7", 171 + "type": "github" 172 + }, 173 + "original": { 174 + "owner": "nix-community", 175 + "repo": "nix-unit", 176 + "type": "github" 177 + } 178 + }, 101 179 "nixpkgs": { 102 180 "locked": { 103 181 "lastModified": 1763618868, ··· 116 194 }, 117 195 "root": { 118 196 "inputs": { 119 - "checkmate-modules": "checkmate-modules", 197 + "checkmate": "checkmate", 120 198 "den": "den", 121 199 "flake-aspects": "flake-aspects", 122 200 "flake-file": "flake-file", 123 201 "flake-parts": "flake-parts", 124 202 "import-tree": "import-tree", 203 + "nix-unit": "nix-unit", 125 204 "nixpkgs": "nixpkgs", 126 205 "nixpkgs-lib": [ 127 206 "nixpkgs" 128 207 ], 129 208 "systems": "systems", 130 - "target": "target" 209 + "target": "target", 210 + "treefmt-nix": "treefmt-nix_2" 131 211 } 132 212 }, 133 213 "systems": { ··· 148 228 "target": { 149 229 "locked": { 150 230 "dir": "templates/dendritic", 151 - "lastModified": 1763688069, 152 - "narHash": "sha256-1mK38cB+dTFh6gieuqWswqbWAbV/cGrqiR+r6ONSL5s=", 231 + "lastModified": 1763688964, 232 + "narHash": "sha256-xJ3g37BgPgIKNrUT9wo/QCDXpo5P/KZA3wjT9ETmc8o=", 153 233 "owner": "vic", 154 234 "repo": "checkmate", 155 - "rev": "52665a9ad341f0b11620aabbd8ede55af6638c06", 235 + "rev": "7add32917422eb14bf09560f9686d19232745ae1", 156 236 "type": "github" 157 237 }, 158 238 "original": { 159 239 "dir": "templates/dendritic", 160 240 "owner": "vic", 161 241 "repo": "checkmate", 242 + "type": "github" 243 + } 244 + }, 245 + "treefmt-nix": { 246 + "inputs": { 247 + "nixpkgs": [ 248 + "nix-unit", 249 + "nixpkgs" 250 + ] 251 + }, 252 + "locked": { 253 + "lastModified": 1762410071, 254 + "narHash": "sha256-aF5fvoZeoXNPxT0bejFUBXeUjXfHLSL7g+mjR/p5TEg=", 255 + "owner": "numtide", 256 + "repo": "treefmt-nix", 257 + "rev": "97a30861b13c3731a84e09405414398fbf3e109f", 258 + "type": "github" 259 + }, 260 + "original": { 261 + "owner": "numtide", 262 + "repo": "treefmt-nix", 263 + "type": "github" 264 + } 265 + }, 266 + "treefmt-nix_2": { 267 + "inputs": { 268 + "nixpkgs": [ 269 + "nixpkgs" 270 + ] 271 + }, 272 + "locked": { 273 + "lastModified": 1762938485, 274 + "narHash": "sha256-AlEObg0syDl+Spi4LsZIBrjw+snSVU4T8MOeuZJUJjM=", 275 + "owner": "numtide", 276 + "repo": "treefmt-nix", 277 + "rev": "5b4ee75aeefd1e2d5a1cc43cf6ba65eba75e83e4", 278 + "type": "github" 279 + }, 280 + "original": { 281 + "owner": "numtide", 282 + "repo": "treefmt-nix", 162 283 "type": "github" 163 284 } 164 285 }
+26 -3
templates/dendritic/checkmate/flake.nix
··· 5 5 outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules); 6 6 7 7 inputs = { 8 - checkmate-modules = { 9 - flake = false; 10 - url = "github:vic/checkmate?dir=modules/checkmate"; 8 + checkmate = { 9 + inputs = { 10 + den.follows = "den"; 11 + flake-aspects.follows = "flake-aspects"; 12 + flake-file.follows = "flake-file"; 13 + flake-parts.follows = "flake-parts"; 14 + import-tree.follows = "import-tree"; 15 + nix-unit.follows = "nix-unit"; 16 + nixpkgs.follows = "nixpkgs"; 17 + nixpkgs-lib.follows = "nixpkgs"; 18 + systems.follows = "systems"; 19 + target.follows = "target"; 20 + treefmt-nix.follows = "treefmt-nix"; 21 + }; 22 + url = "github:vic/checkmate"; 11 23 }; 12 24 den.url = "github:vic/den"; 13 25 flake-aspects.url = "github:vic/flake-aspects"; ··· 17 29 url = "github:hercules-ci/flake-parts"; 18 30 }; 19 31 import-tree.url = "github:vic/import-tree"; 32 + nix-unit = { 33 + inputs = { 34 + flake-parts.follows = "flake-parts"; 35 + nixpkgs.follows = "nixpkgs"; 36 + }; 37 + url = "github:nix-community/nix-unit"; 38 + }; 20 39 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 21 40 nixpkgs-lib.follows = "nixpkgs"; 22 41 systems.url = "github:nix-systems/default"; 23 42 target.url = "github:vic/checkmate?dir=templates/dendritic"; 43 + treefmt-nix = { 44 + inputs.nixpkgs.follows = "nixpkgs"; 45 + url = "github:numtide/treefmt-nix"; 46 + }; 24 47 }; 25 48 26 49 }
+5
templates/dendritic/checkmate/modules/checkmate.nix
··· 1 + { inputs, lib, ... }: 2 + { 3 + flake-file.inputs.checkmate.url = lib.mkDefault "github:vic/checkmate"; 4 + imports = [ (inputs.checkmate.flakeModule or { }) ]; 5 + }
+1 -5
templates/dendritic/checkmate/modules/target.nix
··· 1 1 { 2 - flake-file.inputs = { 3 - target.url = "github:vic/checkmate?dir=templates/dendritic"; 4 - checkmate-modules.url = "github:vic/checkmate?dir=modules/checkmate"; 5 - checkmate-modules.flake = false; 6 - }; 2 + flake-file.inputs.target.url = "github:vic/checkmate?dir=templates/dendritic"; 7 3 }
+1 -1
templates/dendritic/checkmate/modules/test.nix
··· 1 1 { 2 - flake.tests."universe works" = { 2 + flake.tests."test universe works" = { 3 3 expr = 2 * 2; 4 4 expected = 4; 5 5 };