Skip to content

Commit

Permalink
Merge pull request #1574 from jamesdbrock/devshell-poetry
Browse files Browse the repository at this point in the history
feat: Split flake template devShell: app and poetry
  • Loading branch information
cpcloud authored May 2, 2024
2 parents 53ba796 + b3b1e54 commit f83f0f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/app/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,21 @@
default = self.packages.${system}.myapp;
};

# Shell for app dependencies.
#
# nix develop
#
# Use this shell for developing your app.
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.myapp ];
};

# Shell for poetry.
#
# nix develop .#poetry
#
# Use this shell for changes to pyproject.toml and poetry.lock.
devShells.poetry = pkgs.mkShell {
packages = [ pkgs.poetry ];
};
});
Expand Down

0 comments on commit f83f0f6

Please sign in to comment.