Merge pull request #214077 from tuxinaut/master

musikcube: activate portaudio, pipewire, sndio, core audio plugins
This commit is contained in:
Aaron Andersen 2023-02-20 19:20:49 -05:00 committed by GitHub
commit f0ee3b1a2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,33 @@
{ lib
, stdenv
{ asio
, cmake
, pkg-config
, curl
, asio
, fetchFromGitHub
, fetchpatch
, ffmpeg
, gnutls
, lame
, lib
, libev
, game-music-emu
, libmicrohttpd
, libopenmpt
, mpg123
, ncurses
, pkg-config
, portaudio
, stdenv
, taglib
# Linux Dependencies
, alsa-lib
, pipewireSupport ? true, pipewire
, pulseaudio
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
, sndioSupport ? true, sndio
, systemd
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
# Darwin Dependencies
, Cocoa
, SystemConfiguration
, coreaudioSupport ? stdenv.hostPlatform.isDarwin
}:
stdenv.mkDerivation rec {
@ -56,13 +60,18 @@ stdenv.mkDerivation rec {
libopenmpt
mpg123
ncurses
portaudio
taglib
] ++ lib.optionals systemdSupport [
systemd
] ++ lib.optionals stdenv.isLinux [
alsa-lib pulseaudio
] ++ lib.optionals stdenv.isDarwin [
Cocoa SystemConfiguration
Cocoa coreaudioSupport SystemConfiguration
] ++ lib.optional sndioSupport [
sndio
] ++ lib.optional pipewireSupport [
pipewire
];
cmakeFlags = [