mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
46 lines
1013 B
Nix
46 lines
1013 B
Nix
{
|
|
description = "General Python dev environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
python = pkgs.python314;
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
name = "python";
|
|
|
|
packages = with pkgs; [
|
|
python
|
|
python.pkgs.pygame
|
|
#python.pkgs.pip
|
|
#python.pkgs.virtualenv
|
|
|
|
# ML stack
|
|
#python.pkgs.numpy
|
|
#python.pkgs.scipy
|
|
#python.pkgs.pandas
|
|
#python.pkgs.matplotlib
|
|
#python.pkgs.scikit-learn
|
|
|
|
# Optional
|
|
#python.pkgs.jupyterlab
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "Python loaded"
|
|
'';
|
|
};
|
|
});
|
|
}
|