about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2023-02-20 19:20:49 -0500
committerGitHub <noreply@github.com>2023-02-20 19:20:49 -0500
commitf0ee3b1a2e3d6d534f3aeefab4d4bafa18b6f628 (patch)
treebc192a3ffcff06c82f8cc04ef58f34bffe35f6a4 /pkgs
parent5be19d43a20d64e179b9fd5e6b480711702dcff3 (diff)
parent2f6d2e99866cb816f2b401596996021d20048bf9 (diff)
Merge pull request #214077 from tuxinaut/master
musikcube: activate portaudio, pipewire, sndio, core audio plugins
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/audio/musikcube/default.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/applications/audio/musikcube/default.nix b/pkgs/applications/audio/musikcube/default.nix
index 35e86c28f6ceb..a8754cc93154e 100644
--- a/pkgs/applications/audio/musikcube/default.nix
+++ b/pkgs/applications/audio/musikcube/default.nix
@@ -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 = [