-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified and correct direnv and nix-shell environment.
This simplifies the configuration by keeping everything in the pyproject.yaml and just reading that environment into the nix-shell with poetry2nix. This should keep everything much more sane for python projects and I'll verify this is correct with another project shortly.
- Loading branch information
Showing
4 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
cron-install = import ./default.nix; | ||
zfs-replicate = import ./default.nix; | ||
in | ||
pkgs.mkShell { | ||
buildInputs = [ | ||
cron-install | ||
pkgs.poetry | ||
pkgs.python3 | ||
pkgs.python37Packages.virtualenv | ||
zfs-replicate | ||
(pkgs.poetry2nix.mkPoetryEnv { projectDir = ../.; }) | ||
]; | ||
shellHook = '' | ||
unset SOURCE_DATE_EPOCH | ||
''; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters