2023-05-29 17:52:03 +00:00
|
|
|
{ lib, flake-parts-lib, ... }:
|
2022-03-15 18:24:44 +00:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkOption
|
|
|
|
types
|
2023-06-15 20:08:54 +00:00
|
|
|
literalExpression
|
2022-03-15 18:24:44 +00:00
|
|
|
;
|
2022-05-25 14:36:33 +00:00
|
|
|
inherit (flake-parts-lib)
|
2022-10-30 11:01:01 +00:00
|
|
|
mkTransposedPerSystemModule
|
2022-03-15 18:24:44 +00:00
|
|
|
;
|
|
|
|
in
|
2022-10-30 11:01:01 +00:00
|
|
|
mkTransposedPerSystemModule {
|
|
|
|
name = "devShells";
|
|
|
|
option = mkOption {
|
|
|
|
type = types.lazyAttrsOf types.package;
|
|
|
|
default = { };
|
|
|
|
description = ''
|
2022-11-11 05:40:37 +00:00
|
|
|
An attribute set of packages to be used as shells.
|
|
|
|
[`nix develop .#<name>`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-develop.html) will run `devShells.<name>`.
|
2022-10-30 11:01:01 +00:00
|
|
|
'';
|
2023-06-15 20:08:54 +00:00
|
|
|
example = literalExpression ''
|
2023-06-26 07:14:11 +00:00
|
|
|
{
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [ wget bat cargo ];
|
2023-06-15 20:08:54 +00:00
|
|
|
};
|
2023-06-26 07:14:11 +00:00
|
|
|
}
|
2023-06-15 20:08:54 +00:00
|
|
|
'';
|
2022-03-15 18:24:44 +00:00
|
|
|
};
|
2022-10-30 11:01:01 +00:00
|
|
|
file = ./devShells.nix;
|
2022-03-15 18:24:44 +00:00
|
|
|
}
|