Skip to content

Commit

Permalink
flake: add devShell for docs
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Mar 12, 2024
1 parent 6cb76fb commit 69f1f51
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake ..#docs
21 changes: 14 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
go
golangci-lint
just
];
shellHook = ''alias make=just'';
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
go
golangci-lint
just
];
shellHook = ''alias make=just'';
};
docs = pkgs.mkShell {
packages = with pkgs; [
nodejs-18_x
];
};
};

formatter = treefmtEval.config.build.wrapper;
Expand Down

0 comments on commit 69f1f51

Please sign in to comment.