summaryrefslogtreecommitdiffstats
path: root/lib/devShell.nix
blob: 185907b012e59b6e34fec53029004f956e56c619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, lib, pkgs, ... }:
{
  options = {
    devShell = {
      packages = lib.mkOption {
        type = lib.types.listOf lib.types.package;
        default = [ pkgs.npins ];
      };
      shellHook = lib.mkOption {
        type = lib.types.str;
        default = "";
      };
    };
    outputs.devShell = lib.mkOption {
      type = lib.types.package;
    };
  };
  config = {
    devShell.packages = with pkgs; [ npins ];
    outputs.devShell = pkgs.mkShell config.devShell;
  };
}