summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2025-09-06 15:20:21 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2025-09-06 15:20:25 +0200
commit8bf52fd90e113cf64b193defdd3d3847a00be7c2 (patch)
tree0852f3d3902f8bc8eb422f02c35df14ce1c4ce6b /lib
parentcc03ec68411c6f550f9f00428148eeab3be5aec0 (diff)
add `npins' to `devShell'
Diffstat (limited to 'lib')
-rw-r--r--lib/devShell.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/devShell.nix b/lib/devShell.nix
index 110b857..617210a 100644
--- a/lib/devShell.nix
+++ b/lib/devShell.nix
@@ -1,13 +1,16 @@
{ config, lib, pkgs, ... }:
{
options = {
- devShell = lib.mkOption {
- type = lib.types.attrsOf lib.types.unspecified;
- default = pkgs.mkShell {};
+ devShell.packages = lib.mkOption {
+ type = lib.types.listOf lib.types.package;
+ default = [ pkgs.npins ];
};
outputs.devShell = lib.mkOption {
type = lib.types.package;
};
};
- config.outputs.devShell = config.devShell;
+ config = {
+ devShell.packages = with pkgs; [ npins ];
+ outputs.devShell = pkgs.mkShell config.devShell;
+ };
}