mirror of
https://github.com/virchau13/automatic1111-webui-nix.git
synced 2024-11-22 14:14:05 +03:00
Better environment switching for CUDA
This commit is contained in:
parent
cae02d752c
commit
8e26ccbdb4
5
impl.nix
5
impl.nix
@ -1,7 +1,6 @@
|
||||
{ pkgs, isCUDA ? true, ... }:
|
||||
|
||||
let
|
||||
cuda_path = if isCUDA then pkgs.cudatoolkit else "";
|
||||
hardware_deps = with pkgs;
|
||||
if isCUDA then [
|
||||
cudatoolkit
|
||||
@ -36,6 +35,6 @@ pkgs.mkShell rec {
|
||||
glib
|
||||
];
|
||||
LD_LIBRARY_PATH=pkgs.lib.makeLibraryPath buildInputs;
|
||||
CUDA_PATH=pkgs.cudatoolkit;
|
||||
EXTRA_LDFLAGS="-L${pkgs.linuxPackages.nvidia_x11}/lib";
|
||||
CUDA_PATH = pkgs.lib.optionalString isCUDA pkgs.cudatoolkit;
|
||||
EXTRA_LDFLAGS = pkgs.lib.optionalString isCUDA "-L${pkgs.linuxPackages.nvidia_x11}/lib";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user