1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2025-03-05 08:27:02 +00:00
flake-parts/modules/devShells.nix

31 lines
726 B
Nix
Raw Normal View History

2023-05-29 13:52:03 -04:00
{ lib, flake-parts-lib, ... }:
let
inherit (lib)
mkOption
types
2023-06-15 22:08:54 +02:00
literalExpression
;
2022-05-25 16:36:33 +02:00
inherit (flake-parts-lib)
mkTransposedPerSystemModule
;
in
mkTransposedPerSystemModule {
name = "devShells";
option = mkOption {
type = types.lazyAttrsOf types.package;
default = { };
description = ''
2022-11-11 06:40:37 +01: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>`.
'';
2023-06-15 22:08:54 +02:00
example = literalExpression ''
2023-06-26 09:14:11 +02:00
{
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ wget bat cargo ];
2023-06-15 22:08:54 +02:00
};
2023-06-26 09:14:11 +02:00
}
2023-06-15 22:08:54 +02:00
'';
};
file = ./devShells.nix;
}