diff --git a/.envrc b/.envrc index b6c6c0e..9bc026e 100644 --- a/.envrc +++ b/.envrc @@ -3,7 +3,7 @@ # It enters you into the poetry venv, removing the need for `poetry run`. if command -v nix >/dev/null; then - use nix -p poetry + use flake || use nix -p poetry fi # Instead of using the flake, we use poetry to manage a development venv diff --git a/flake.nix b/flake.nix index 19594f6..2a612a3 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,8 @@ #"riscv64-linux" ]; in { + inherit inputs; + packages = forAllSystems ({ pkgs, flakes, ...}: { remi = with pkgs.python3.pkgs; buildPythonPackage rec { pname = "remi"; @@ -126,5 +128,14 @@ }; }; }; + + devShells = forAllSystems ({ pkgs, ... }: rec { + default = pkgs.mkShellNoCC { + packages = [ + pkgs.poetry + pkgs.python3 + ]; + }; + }); }; }