Start work on devshell configuration

This commit is contained in:
Jan-Bulthuis 2025-02-08 21:52:42 +01:00
parent 512c6066fa
commit 74ddbc24bb
2 changed files with 36 additions and 0 deletions

View File

@ -67,5 +67,6 @@
}; };
}; };
}; };
devenv = ./shell-modules/default.nix;
}; };
} }

35
shell-modules/default.nix Normal file
View File

@ -0,0 +1,35 @@
{ pkgs, ... }:
pkgs.mkShell {
packages = with pkgs; [
(python312.withPackages (p: [
p.numpy
p.scikit-learn
p.scipy
p.pandas
p.matplotlib
p.torch-bin
# p.torchvision
]))
libffi
openssl
stdenv.cc.cc
linuxPackages.nvidia_x11
binutils
cudatoolkit
libGLU
libGL
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (
with pkgs;
[
stdenv.cc.cc
linuxPackages.nvidia_x11
binutils
cudatoolkit
libGLU
libGL
]
);
CUDA_PATH = pkgs.cudatoolkit;
}