shells/cuda: Reformat, replace shellhook with env attr

This commit is contained in:
Felix Albrigtsen 2025-03-15 23:37:53 +01:00
parent 4f28815018
commit c83005983e

View File

@ -5,21 +5,41 @@
pkgs.mkShell { pkgs.mkShell {
name = "cuda-env-shell"; name = "cuda-env-shell";
buildInputs = with pkgs; [ buildInputs = with pkgs; [
git gitRepo gnupg autoconf curl autoconf
procps gnumake util-linux m4 gperf unzip binutils
cudatoolkit linuxPackages.nvidia_x11 curl
libGLU libGL freeglut
xorg.libXi xorg.libXmu freeglut git
xorg.libXext xorg.libX11 xorg.libXv xorg.libXrandr zlib gitRepo
ncurses5 stdenv.cc binutils gnumake
gnupg
gperf
libGL
libGLU
m4
ncurses5
procps
stdenv.cc
unzip
util-linux
xorg.libX11
xorg.libXext
xorg.libXi
xorg.libXmu
xorg.libXrandr
xorg.libXv
zlib
cudatoolkit
linuxPackages.nvidia_x11
# Other applications, like # Other applications, like
hashcat hashcat
]; ];
shellHook = ''
export CUDA_PATH=${pkgs.cudatoolkit} env = {
# export LD_LIBRARY_PATH=${pkgs.linuxPackages.nvidia_x11}/lib:${pkgs.ncurses5}/lib CUDA_PATH = pkgs.cudatoolkit;
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib" EXTRA_LDFLAGS = "-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib";
export EXTRA_CCFLAGS="-I/usr/include" EXTRA_CCFLAGS = "-I/usr/include";
''; };
} }