main
1{
2 den,
3 inputs,
4 ...
5}: {
6 flake-file.inputs.devshell = {
7 url = "github:numtide/devshell";
8 inputs.nixpkgs.follows = "nixpkgs";
9 };
10
11 imports = [inputs.devshell.flakeModule];
12
13 den.classes.devshell = {};
14 den.policies.devshell-to-flake-parts = _: [
15 (den.lib.policy.route {
16 fromClass = "devshell";
17 intoClass = "flake-parts";
18 path = [
19 "devshells"
20 "default"
21 ];
22 adaptArgs = {config, ...}: config.allModuleArgs;
23 })
24 ];
25
26 den.schema.flake-parts.includes = [den.policies.devshell-to-flake-parts];
27}