This commit is contained in:
Johannes Jöns 2024-01-24 16:01:02 +01:00
parent 9be6b0b290
commit 07b38ba006
2 changed files with 21 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

20
flake.nix Normal file
View 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 ]);
};
});
};
}