sb-ass/a1/flake.nix

34 lines
706 B
Nix
Raw Normal View History

2023-11-07 09:09:37 +01:00
{
2023-11-07 14:12:50 +01:00
description = "Python development environment";
2023-11-07 09:09:37 +01:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... } @ inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [];
};
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
matplotlib
opencv4
pip
pillow
2023-11-07 14:12:50 +01:00
tqdm
numpy
2023-11-07 09:09:37 +01:00
]);
in {
devShells.default = pkgs.mkShell {
buildInputs = [
pythonEnv
];
};
}
);
}