flake shell

This commit is contained in:
Peder Bergebakken Sundt 2024-03-31 04:45:22 +02:00
parent a38a0b0fb3
commit 99f41e54c4
2 changed files with 12 additions and 1 deletions

2
.envrc
View File

@ -3,7 +3,7 @@
# It enters you into the poetry venv, removing the need for `poetry run`. # It enters you into the poetry venv, removing the need for `poetry run`.
if command -v nix >/dev/null; then if command -v nix >/dev/null; then
use nix -p poetry use flake || use nix -p poetry
fi fi
# Instead of using the flake, we use poetry to manage a development venv # Instead of using the flake, we use poetry to manage a development venv

View File

@ -30,6 +30,8 @@
#"riscv64-linux" #"riscv64-linux"
]; ];
in { in {
inherit inputs;
packages = forAllSystems ({ pkgs, flakes, ...}: { packages = forAllSystems ({ pkgs, flakes, ...}: {
remi = with pkgs.python3.pkgs; buildPythonPackage rec { remi = with pkgs.python3.pkgs; buildPythonPackage rec {
pname = "remi"; pname = "remi";
@ -126,5 +128,14 @@
}; };
}; };
}; };
devShells = forAllSystems ({ pkgs, ... }: rec {
default = pkgs.mkShellNoCC {
packages = [
pkgs.poetry
pkgs.python3
];
};
});
}; };
} }