mirror of
https://git.adityakumar.xyz/flakes.git
synced 2024-11-09 14:19:43 +00:00
add python flake
This commit is contained in:
parent
f3f7e075f6
commit
39c3c26455
1 changed files with 29 additions and 0 deletions
29
flake-python.nix
Normal file
29
flake-python.nix
Normal file
|
@ -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";
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue