Skip to content

Commit

Permalink
feat: adds mkShellHook
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed May 27, 2022
1 parent 435112b commit b607c95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

# Local shell for development
devShell = pkgs.mkShell {
shellHook = preCommit.shellHook + "\n" + just.shellHook;
shellHook = lib.mkShellHook [ preCommit just ];
packages = tools.all;
};
}
Expand Down
1 change: 1 addition & 0 deletions lib/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ pkgs, lib }:
{
mkShellHook = configs: builtins.concatStringsSep "\n" (pkgs.lib.catAttrs "shellHook" configs);
mkTemplate = import ./template.nix { inherit pkgs lib; };
}

0 comments on commit b607c95

Please sign in to comment.