2024-01-24 16:01:02 +01:00
|
|
|
{
|
|
|
|
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 {
|
2024-01-24 16:09:05 +01:00
|
|
|
packages = with pkgs; [ python311 virtualenv libffi libsodium jetbrains.pycharm-community ] ++
|
|
|
|
(with pkgs.python311Packages; [ pip virtualenv ]);
|
2024-01-24 16:01:02 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|