add nix
This commit is contained in:
parent
9be6b0b290
commit
07b38ba006
2 changed files with 21 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
20
flake.nix
Normal file
20
flake.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
description = "A Nix-flake-based Python development environment";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
in
|
||||
{
|
||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [ python313 virtualenv libffi libsodium jetbrains.pycharm-community ] ++
|
||||
(with pkgs.python313Packages; [ pip virtualenv ]);
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue