mirror of
https://git.adityakumar.xyz/flakes.git
synced 2024-11-09 14:19:43 +00:00
29 lines
613 B
Nix
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";
|
|
};
|
|
}
|
|
);
|
|
}
|