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