2023-03-28 01:04:30 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/release-22.11";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2023-03-29 22:12:50 +02:00
|
|
|
pyDeps = p: with p; [ numpy scipy matplotlib pillow ];
|
2023-03-28 01:04:30 +02:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
(python3.withPackages pyDeps)
|
|
|
|
jupyter
|
|
|
|
pandoc
|
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|