flakes/flake-python.nix
2023-06-28 10:13:51 +05:30

29 lines
613 B
Nix

{
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
(python3.withPackages(ps: with ps; [
ipython
jupyter
numpy
pandas
]))
];
shellHook = "jupyter notebook";
};
}
);
}