Setup python env
This commit is contained in:
@@ -81,12 +81,20 @@
|
||||
'';
|
||||
};
|
||||
|
||||
pythonEnv = pkgs.python3.withPackages (
|
||||
ps: with ps; [
|
||||
pandas
|
||||
matplotlib
|
||||
]
|
||||
);
|
||||
|
||||
in
|
||||
{
|
||||
packages.${system} = {
|
||||
default = misth;
|
||||
misth = misth;
|
||||
mruby = mruby;
|
||||
pythonEnv = pythonEnv;
|
||||
};
|
||||
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
@@ -104,6 +112,9 @@
|
||||
sdl3
|
||||
sdl3-ttf
|
||||
sdl3-image
|
||||
|
||||
pythonEnv
|
||||
ruff
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
||||
+1
-1
@@ -21,4 +21,4 @@ plt.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
plt.savefig("benchmark.png", dpi=200, bbox_inches="tight")
|
||||
plt.savefig("benchmark.png", dpi=200, bbox_inches="tight")
|
||||
|
||||
Reference in New Issue
Block a user