From 39c3c26455b0c730ea3b66cbca3917b02692a110 Mon Sep 17 00:00:00 2001 From: aditya Date: Wed, 28 Jun 2023 10:13:51 +0530 Subject: [PATCH] add python flake --- flake-python.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 flake-python.nix 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"; + }; + } + ); +}