1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

docs: add example for devShells

This commit is contained in:
Santiago Fraire 2023-06-15 22:08:54 +02:00
parent 71fb97f0d8
commit 93292ab70a

View file

@ -3,6 +3,7 @@ let
inherit (lib)
mkOption
types
literalExpression
;
inherit (flake-parts-lib)
mkTransposedPerSystemModule
@ -17,6 +18,13 @@ mkTransposedPerSystemModule {
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>`.
'';
example = literalExpression ''
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ wget bat git cargo ];
};
}
'';
};
file = ./devShells.nix;
}