20 lines
427 B
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;
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|