From 99f41e54c4cf15e1d88b3957ea5e44b1cc2eba5b Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 31 Mar 2024 04:45:22 +0200 Subject: [PATCH] flake shell --- .envrc | 2 +- flake.nix | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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 + ]; + }; + }); }; }