diff options
author | aditya <bluenerd@protonmail.com> | 2023-06-28 10:13:51 +0530 |
---|---|---|
committer | aditya <bluenerd@protonmail.com> | 2023-06-28 10:13:51 +0530 |
commit | 39c3c26455b0c730ea3b66cbca3917b02692a110 (patch) | |
tree | a9ecd9ccac785badec4f83826063fa5a24932fc6 | |
parent | f3f7e075f67014e3af1e60d051e5f9ed8937271d (diff) |
add python flake
-rw-r--r-- | flake-python.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/flake-python.nix b/flake-python.nix new file mode 100644 index 0000000..f1c15c5 --- /dev/null +++ b/flake-python.nix @@ -0,0 +1,29 @@ + { + 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"; + }; + } + ); +} |