Generate flake.nix from module options. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic nix inputs

breaking: dendritic module no longer provides den and flake-aspects (#52)

* remove den and flake-aspects

* Update README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

authored by oeiuwq.com

Copilot and committed by
GitHub
9af20d5e 801df19f

+44 -60
+2 -2
README.md
··· 143 143 - Includes flakeModules.default. 144 144 - Includes flakeModules.import-tree. 145 145 - Enables [`flake-parts`](https://github.com/hercules-ci/flake-parts). 146 - - Enables [`flake-aspects`](https://github.com/vic/flake-aspects). 147 - - Enables [`den`](https://github.com/vic/den). 148 146 - Sets `outputs` to `inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules)`. 147 + 148 + > Previously, this module included `flake-aspects` and `den` as dependencies. It now provides a pure flake-parts Dendritic setup. If you need the complete [den](https://github.com/vic/den) functionality, use den's `flakeModules.dendritic` instead. 149 149 150 150 ### Flake Templates 151 151
+40 -50
dev/flake.lock
··· 1 1 { 2 2 "nodes": { 3 - "den": { 4 - "locked": { 5 - "lastModified": 1761530965, 6 - "narHash": "sha256-ieTMY6bsJbl87/XugjWFid6EN9q1C0rFdaPoYCfm1Kk=", 7 - "owner": "vic", 8 - "repo": "den", 9 - "rev": "ef58a62952eaf82f391dbe24ec693996d5abc505", 10 - "type": "github" 11 - }, 12 - "original": { 13 - "owner": "vic", 14 - "repo": "den", 15 - "type": "github" 16 - } 17 - }, 18 3 "devshell": { 19 4 "inputs": { 20 5 "nixpkgs": [ ··· 22 7 ] 23 8 }, 24 9 "locked": { 25 - "lastModified": 1741473158, 26 - "narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=", 10 + "lastModified": 1762521437, 11 + "narHash": "sha256-RXN+lcx4DEn3ZS+LqEJSUu/HH+dwGvy0syN7hTo/Chg=", 27 12 "owner": "numtide", 28 13 "repo": "devshell", 29 - "rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0", 14 + "rev": "07bacc9531f5f4df6657c0a02a806443685f384a", 30 15 "type": "github" 31 16 }, 32 17 "original": { ··· 35 20 "type": "github" 36 21 } 37 22 }, 38 - "flake-aspects": { 39 - "locked": { 40 - "lastModified": 1761515738, 41 - "narHash": "sha256-uW/vyyZDt9UvJbC0xghkjZhuuSnJui/fevMbKsvXV6k=", 42 - "owner": "vic", 43 - "repo": "flake-aspects", 44 - "rev": "0fb045faceaeefa83a85173fd0c4ebf4d47a6d9d", 45 - "type": "github" 46 - }, 47 - "original": { 48 - "owner": "vic", 49 - "repo": "flake-aspects", 50 - "type": "github" 51 - } 52 - }, 53 23 "flake-file": { 54 24 "locked": { 55 25 "path": "..", ··· 68 38 ] 69 39 }, 70 40 "locked": { 71 - "lastModified": 1760948891, 72 - "narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=", 41 + "lastModified": 1762980239, 42 + "narHash": "sha256-8oNVE8TrD19ulHinjaqONf9QWCKK+w4url56cdStMpM=", 73 43 "owner": "hercules-ci", 74 44 "repo": "flake-parts", 75 - "rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04", 45 + "rev": "52a2caecc898d0b46b2b905f058ccc5081f842da", 76 46 "type": "github" 77 47 }, 78 48 "original": { ··· 83 53 }, 84 54 "import-tree": { 85 55 "locked": { 86 - "lastModified": 1761120675, 87 - "narHash": "sha256-TEbh9zISiQcU82VwVoEbmXHnSGlUxTwvjJA9g9ErSDA=", 56 + "lastModified": 1763695721, 57 + "narHash": "sha256-tMfN/JkwWJ129cXDW+lK2gUcjklJ+LpTHj9LlneJRXg=", 88 58 "owner": "vic", 89 59 "repo": "import-tree", 90 - "rev": "a037ed2a58fc0ebed9e93b9ef79b0646e648f719", 60 + "rev": "ca69d64711265c68cf71f6c029ab9f1a55a767f8", 91 61 "type": "github" 92 62 }, 93 63 "original": { ··· 116 86 "type": "github" 117 87 } 118 88 }, 89 + "nix-github-actions": { 90 + "inputs": { 91 + "nixpkgs": [ 92 + "nix-unit", 93 + "nixpkgs" 94 + ] 95 + }, 96 + "locked": { 97 + "lastModified": 1737420293, 98 + "narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=", 99 + "owner": "nix-community", 100 + "repo": "nix-github-actions", 101 + "rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9", 102 + "type": "github" 103 + }, 104 + "original": { 105 + "owner": "nix-community", 106 + "repo": "nix-github-actions", 107 + "type": "github" 108 + } 109 + }, 119 110 "nix-unit": { 120 111 "inputs": { 121 112 "flake-parts": [ 122 113 "flake-parts" 123 114 ], 115 + "nix-github-actions": "nix-github-actions", 124 116 "nixpkgs": [ 125 117 "nixpkgs" 126 118 ], ··· 129 121 ] 130 122 }, 131 123 "locked": { 132 - "lastModified": 1757781724, 133 - "narHash": "sha256-DP5SCFx0AsbPnT7KzEl3gQNWPF70Tlcc+jtLkqupabI=", 124 + "lastModified": 1762774186, 125 + "narHash": "sha256-hRADkHjNt41+JUHw2EiSkMaL4owL83g5ZppjYUdF/Dc=", 134 126 "owner": "nix-community", 135 127 "repo": "nix-unit", 136 - "rev": "7a952131cbef9cb21953ae70ad09249541848f07", 128 + "rev": "1c9ab50554eed0b768f9e5b6f646d63c9673f0f7", 137 129 "type": "github" 138 130 }, 139 131 "original": { ··· 144 136 }, 145 137 "nixpkgs": { 146 138 "locked": { 147 - "lastModified": 1761349956, 148 - "narHash": "sha256-tH3wHnOJms+U4k/rK2Nn1RfBrhffX92jLP/2VndSn0w=", 139 + "lastModified": 1763618868, 140 + "narHash": "sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r+JerayK/4wvdWA=", 149 141 "owner": "nixos", 150 142 "repo": "nixpkgs", 151 - "rev": "02f2cb8e0feb4596d20cc52fda73ccee960e3538", 143 + "rev": "a8d610af3f1a5fb71e23e08434d8d61a466fc942", 152 144 "type": "github" 153 145 }, 154 146 "original": { ··· 160 152 }, 161 153 "root": { 162 154 "inputs": { 163 - "den": "den", 164 155 "devshell": "devshell", 165 - "flake-aspects": "flake-aspects", 166 156 "flake-file": "flake-file", 167 157 "flake-parts": "flake-parts", 168 158 "import-tree": "import-tree", ··· 198 188 ] 199 189 }, 200 190 "locked": { 201 - "lastModified": 1761311587, 202 - "narHash": "sha256-Msq86cR5SjozQGCnC6H8C+0cD4rnx91BPltZ9KK613Y=", 191 + "lastModified": 1762938485, 192 + "narHash": "sha256-AlEObg0syDl+Spi4LsZIBrjw+snSVU4T8MOeuZJUJjM=", 203 193 "owner": "numtide", 204 194 "repo": "treefmt-nix", 205 - "rev": "2eddae033e4e74bf581c2d1dfa101f9033dbd2dc", 195 + "rev": "5b4ee75aeefd1e2d5a1cc43cf6ba65eba75e83e4", 206 196 "type": "github" 207 197 }, 208 198 "original": {
-2
dev/flake.nix
··· 5 5 outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules); 6 6 7 7 inputs = { 8 - den.url = "github:vic/den"; 9 8 devshell = { 10 9 inputs.nixpkgs.follows = "nixpkgs"; 11 10 url = "github:numtide/devshell"; 12 11 }; 13 - flake-aspects.url = "github:vic/flake-aspects"; 14 12 flake-file.url = "path:.."; 15 13 flake-parts = { 16 14 inputs.nixpkgs-lib.follows = "nixpkgs-lib";
+2 -4
modules/dendritic/dendritic.nix
··· 4 4 imports = [ 5 5 (inputs.flake-parts.flakeModules.modules or { }) 6 6 (inputs.flake-file.flakeModules.import-tree or { }) 7 - (inputs.flake-aspects.flakeModule or { }) 8 - (inputs.den.flakeModule or { }) 9 7 ]; 10 8 11 9 flake-file.inputs = { 12 10 flake-parts.url = lib.mkDefault "github:hercules-ci/flake-parts"; 13 11 flake-parts.inputs.nixpkgs-lib.follows = lib.mkDefault "nixpkgs-lib"; 14 - flake-aspects.url = lib.mkDefault "github:vic/flake-aspects"; 15 - den.url = lib.mkDefault "github:vic/den"; 16 12 }; 17 13 18 14 flake-file.outputs = '' 19 15 inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules) 20 16 ''; 17 + 18 + flake.modules = { }; 21 19 22 20 }
-2
templates/dendritic/flake.nix
··· 5 5 outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules); 6 6 7 7 inputs = { 8 - den.url = "github:vic/den"; 9 - flake-aspects.url = "github:vic/flake-aspects"; 10 8 flake-file.url = "github:vic/flake-file"; 11 9 flake-parts = { 12 10 inputs.nixpkgs-lib.follows = "nixpkgs-lib";