mirror of
https://github.com/virchau13/automatic1111-webui-nix.git
synced 2024-08-16 03:00:37 +03:00
26 lines
789 B
Nix
26 lines
789 B
Nix
pkgs:
|
|
|
|
pkgs.mkShell rec {
|
|
name = "stable-diffusion-webui";
|
|
buildInputs = with pkgs; [
|
|
git # The program instantly crashes if git is not present, even if everything is already downloaded
|
|
python310
|
|
stdenv.cc.cc.lib
|
|
stdenv.cc
|
|
ncurses5
|
|
binutils
|
|
gitRepo gnupg autoconf curl
|
|
procps gnumake util-linux m4 gperf unzip
|
|
cudatoolkit linuxPackages.nvidia_x11
|
|
libGLU libGL
|
|
xorg.libXi xorg.libXmu freeglut
|
|
xorg.libXext xorg.libX11 xorg.libXv xorg.libXrandr zlib
|
|
glib
|
|
];
|
|
shellHook = ''
|
|
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath buildInputs}"
|
|
export CUDA_PATH=${pkgs.cudatoolkit}
|
|
export EXTRA_LDFLAGS="-L${pkgs.linuxPackages.nvidia_x11}/lib"
|
|
'';
|
|
}
|