Skip to content
Snippets Groups Projects
Commit 3d2a383e authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

add a `shellHook` parameter to `devShells`

It gets added to the pre-commit stuff.
parent a51e591b
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,16 @@ rec {
# A function that accepts a package set and returns a list of additional
# buildInputs to include in the dev shell.
extraBuildInputs ? (pkgs: [])
, shellHook ? "# nothing"
}: {
default = hsPkgs.shellFor {
inherit (preCommitCheck { }) shellHook;
shellHook = ''
# Pre-commit
${(preCommitCheck { }).shellHook}
# Application-supplied
${shellHook}
'';
# Packages to create this development shell for. These are usually your
# local packages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment