cava: add SDL, libGL, and pipewire libs during build and autoconf archive for opengl detection

This commit is contained in:
Arjun31415
2023-09-07 10:12:33 +02:00
committed by Weijia Wang
parent ec1a115d5c
commit 8a106b44eb
+11 -1
View File
@@ -2,14 +2,18 @@
, stdenv
, fetchFromGitHub
, autoreconfHook
, autoconf-archive
, alsa-lib
, fftw
, iniparser
, libpulseaudio
, pipewire
, ncurses
, pkgconf
, SDL2
, libGL
, withSDL2 ? false
, withPipewire ? false
}:
stdenv.mkDerivation rec {
@@ -29,10 +33,16 @@ stdenv.mkDerivation rec {
libpulseaudio
ncurses
iniparser
]++ lib.optional withSDL2 SDL2;
] ++ lib.optionals withSDL2 [
SDL2
libGL
] ++ lib.optionals withPipewire [
pipewire
];
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkgconf
];