From 3010bb10e3b23ea3bec47048775aaf9c325b51a9 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sat, 6 Sep 2025 16:40:55 +0200 Subject: add `shellHook` to `devShell` --- lib/devShell.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/devShell.nix b/lib/devShell.nix index 617210a..185907b 100644 --- a/lib/devShell.nix +++ b/lib/devShell.nix @@ -1,9 +1,15 @@ { config, lib, pkgs, ... }: { options = { - devShell.packages = lib.mkOption { - type = lib.types.listOf lib.types.package; - default = [ pkgs.npins ]; + 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; -- cgit v1.2.3