-
Notifications
You must be signed in to change notification settings - Fork 426
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I have the following devenv.nix which used to build before but now is broken reporting that allowunfree must be set to true which is already set to true in the yaml file. Here is the devenv.nix:
{ pkgs, ... }:
let
buildInputs = with pkgs; [
cudaPackages.cuda_cudart
cudaPackages.cudatoolkit
cudaPackages.cudnn
stdenv.cc.cc
libuv
zlib
];
in
{
packages = with pkgs; [
espeak
zlib
cudaPackages.cuda_nvcc
];
languages.python = {
enable = true;
venv.enable = true;
package = pkgs.python311;
uv = {
enable = true;
package = pkgs.uv;
};
};
dotenv.disableHint = true;
env = {
LD_LIBRARY_PATH = "${
with pkgs;
lib.makeLibraryPath buildInputs
}:/run/opengl-driver/lib:/run/opengl-driver-32/lib";
XLA_FLAGS = "--xla_gpu_cuda_data_dir=${pkgs.cudaPackages.cudatoolkit}"; # For tensorflow with GPU support
CUDA_PATH = pkgs.cudaPackages.cudatoolkit;
};
enterShell = ''
uv sync
# uv pip compile --output-file backend/requirements.txt pyproject.toml
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
alias pip='uv pip'
'';
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working