modular-flake/nix/output/devShells.nix

20 lines
427 B
Nix

{ lib, ... }:
with lib;
{
config.outputKinds = [
(
{ hasSystem, ... }:
optionalAttrs hasSystem {
options = {
devShells = mkOption {
type = with types; attrsOf package;
description = "Used by `nix develop .#<name>`";
};
};
outputs = { config, system, ... }: {
devShells.${system} = config.devShells;
};
}
)
];
}