2023-03-28 01:04:30 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-08-31 19:09:23 +02:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
|
2023-03-28 01:04:30 +02:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2024-08-31 19:09:23 +02:00
|
|
|
pyDeps = p: with p; [ numpy scipy matplotlib pillow jupyter ];
|
2023-03-28 01:04:30 +02:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
devShell = pkgs.mkShell {
|
2024-08-31 19:09:23 +02:00
|
|
|
packages = with pkgs; [
|
2023-03-28 01:04:30 +02:00
|
|
|
(python3.withPackages pyDeps)
|
2024-08-31 19:09:23 +02:00
|
|
|
pkgs.texlive.combined.scheme-full
|
|
|
|
# pandoc
|
2023-03-28 01:04:30 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|