From c40663e5e59471989056d6ebe86fc08aa0d0c202 Mon Sep 17 00:00:00 2001 From: Niklas Voss Date: Wed, 10 Jun 2026 14:28:17 +0200 Subject: [PATCH] feat: add additional fields that are passed on to mkShell to support env among others --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index fffaf9b..a186a80 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ }; outputs = { self, nixpkgs, flake-utils, git-hooks, go-overlay, gomod2nix, ... }@inputs: { - lib.mkShell = { system, packages ? [], preCommitHooks ? {}, goVersion ? null, shellHook ? "", ... }: + lib.mkShell = { system, name ? "dev-shell", packages ? [], inputsFrom ? [], preCommitHooks ? {}, goVersion ? null, shellHook ? "", env ? {}, ... }: let pkgs = import nixpkgs { inherit system; @@ -82,6 +82,8 @@ }; in pkgs.mkShell { + inherit name env inputsFrom; + shellHook = gitHooks.shellHook + '' [[ -f .git/hooks/pre-commit.legacy ]] && rm -v .git/hooks/pre-commit.legacy '' + shellHook;