Reorder variables

This commit is contained in:
Andreas Zweili 2024-04-04 19:04:06 +02:00
parent 5dedcaa47b
commit c204ac6ea3
1 changed files with 9 additions and 9 deletions

View File

@ -22,20 +22,20 @@
let
pkgs = nixpkgs.legacyPackages.${system};
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = pkgs.python312;
};
tests = pkgs.writeShellScriptBin "python-test" ''
trap "process-compose down &> /dev/null" EXIT
process-compose up --tui=false &
pytest --cov=src tests.py
'';
in
{
devShells =
let
config = self.devShells.${system}.default.config;
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = pkgs.python312;
};
tests = pkgs.writeShellScriptBin "python-test" ''
trap "process-compose down &> /dev/null" EXIT
process-compose up --tui=false &
pytest --cov=src tests.py
'';
in
{
default = devenv.lib.mkShell {