Add flake as venv replacement
This commit is contained in:
parent
61eba64b5e
commit
81a5375421
2 changed files with 39 additions and 0 deletions
15
flake.nix
Normal file
15
flake.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
outputs = { self, nixpkgs }:
|
||||
let forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
||||
in {
|
||||
devShells = forAllSystems (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pythonPkgs = ps: with ps; [ requests ];
|
||||
in
|
||||
{
|
||||
default = (pkgs.python3.withPackages pythonPkgs).env;
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue