flake shell
This commit is contained in:
parent
a38a0b0fb3
commit
99f41e54c4
2
.envrc
2
.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
|
||||
|
|
11
flake.nix
11
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
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue