Closed 0x50F1A closed 4 months ago
@0x50F1A cava
has an attribute to include both SDL2 and OpenGL apparently,
i.e. cava.override { withSDL2 = true; }
@0x50F1A
cava
has an attribute to include both SDL2 and OpenGL apparently,i.e.
cava.override { withSDL2 = true; }
Perfect, thank you!
@0x50F1A
cava
has an attribute to include both SDL2 and OpenGL apparently,i.e.
cava.override { withSDL2 = true; }
Can you explain where to use this option? As I don't actually see it as part of cava.
@ForceConstant that's not an option within cava itself, but rather a "derivation flag": https://github.com/NixOS/nixpkgs/blob/nixos-24.05/pkgs/applications/audio/cava/default.nix#L15
cava.override { withSDL2 = true; }
returns another derivation where the withSDL2
flag is set true.
That in turn, builds the SDL2 support into cava.
You can test it in a REPL:
nix repl
:l <nixpkgs>
Then you can run
:b (cava.override { withSDL2 = true; })
The resulting store path will contain cava + SDL2 support.
In short, just replace cava
with (cava.override { withSDL2 = true; })
in your Nix configs to make sure it's built with SDL2 support.
Describe the bug
Per the Cava Config File,
cava
should be able to output to a graphical context, for desktop instead of terminal usage:However, the
nixpkgs
distribution of cava seems to not build opengl support:It is also built without SDL support:
Steps To Reproduce
Steps to reproduce the behavior:
or
method = sdl
to the config filecava
Expected behavior
Cava should launch into a graphical context
Notify maintainers
@offline @mirrexagon
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.