Skip to content

Commit

Permalink
Don't change directory in Nix flakes's dev shell (#485)
Browse files Browse the repository at this point in the history
When the Nix flakes' dev shell is activated, the shell used to end up in
the `dev-tools` directory, rather than the project root directory. That
broke things when the shell was hooked to `direnv` , as `.envrc` would
suddenly be executed in wrong directory. This PR changes that.
  • Loading branch information
geo2a authored Jan 31, 2024
1 parent 697de69 commit 3ee0794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
(nixpkgsFor system).booster-backend.devShell.overrideAttrs (old: {
shellHook = ''
${old.shellHook}
hpack && cd dev-tools && hpack
hpack && hpack dev-tools
'';
}));
};
Expand Down

0 comments on commit 3ee0794

Please sign in to comment.