Skip to content

Commit

Permalink
Merge pull request #44 from sstubbs/feature/add-python-venv
Browse files Browse the repository at this point in the history
feature: add python venv
  • Loading branch information
lucperkins authored Apr 15, 2024
2 parents 4ced0d9 + b89f77d commit 8f13f3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ A dev template that's fully customizable.

- [Python] 3.11.4
- [pip] 23.0.1
- [Virtualenv] 20.19.0

### [`ruby`](./ruby/)

Expand Down Expand Up @@ -367,7 +366,6 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
[texlive]: https://www.tug.org/texlive/
[tflint]: https://github.com/terraform-linters/tflint
[vault]: https://www.vaultproject.io
[virtualenv]: https://pypi.org/project/virtualenv
[vulnix]: https://github.com/flyingcircusio/vulnix
[yarn]: https://yarnpkg.com
[vlang]: https://vlang.io/
Expand Down
8 changes: 6 additions & 2 deletions python/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [ python311 virtualenv ] ++
(with pkgs.python311Packages; [ pip ]);
venvDir = "venv";
packages = with pkgs; [ python311 ] ++
(with pkgs.python311Packages; [
pip
venvShellHook
]);
};
});
};
Expand Down

0 comments on commit 8f13f3a

Please sign in to comment.