NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.47k stars 13.66k forks source link

Build failure: obs-backgroundremoval fails to build with CUDA enabled #335605

Open RedEtherbloom opened 1 month ago

RedEtherbloom commented 1 month ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable CUDA, CUDNN and unfree pacakges via
    nixpkgs.config = {
    allowUnfree = true;
    cudaSupport = true;
    cudnnSupport = true;
    };
  2. Add CUDA-Toolkit and CUDNN to Sytem-Packages
    cudaPackages.cudatoolkit
    cudaPackages.cudnn
  3. Add OBS and plugins to packages via
    (pkgs.wrapOBS {
    plugins = with pkgs.obs-studio-plugins; [
    waveform
    wlrobs
    obs-backgroundremoval
    obs-pipewire-audio-capture
    ];
    })

Build log

https://gist.github.com/RedEtherbloom/f427920f2f37f779ebdab5943e254363

Additional context

All other packages build normally.
OBS builds normally if we remove obs-backgroundremoval from the plugin list.

Notify maintainers

@Zahrun

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.44, NixOS, 24.11 (Vicuna), 24.11.20240814.c3aa7b8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/sfycwi72zfjsspidinx56ajaiffpyh17-source`

(Channel output seems misleading, as we're running Nixos-unstable via flakes)


Add a :+1: reaction to issues you find important.

Zahrun commented 1 month ago

I'm not sure how to fix this, let's see if upstream has an idea https://github.com/locaal-ai/obs-backgroundremoval/issues/598