From 118f0c5fc0f083af784065913e73ffe851affe63 Mon Sep 17 00:00:00 2001 From: r4v3n6101 Date: Sat, 15 Feb 2025 04:06:01 +0300 Subject: [PATCH] zmusic: optional alsa-lib only for linux --- pkgs/by-name/zm/zmusic/package.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/zm/zmusic/package.nix b/pkgs/by-name/zm/zmusic/package.nix index 6c7c04f4a648..c9f1cf10187d 100644 --- a/pkgs/by-name/zm/zmusic/package.nix +++ b/pkgs/by-name/zm/zmusic/package.nix @@ -29,9 +29,7 @@ stdenv.mkDerivation rec { "dev" ]; - patches = [ - ./fluidsynth.patch - ]; + patches = [ ./fluidsynth.patch ]; postPatch = '' substituteInPlace source/mididevices/music_fluidsynth_mididevice.cpp \ @@ -46,12 +44,11 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - alsa-lib fluidsynth libsndfile mpg123 zlib - ]; + ] ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]; meta = { description = "GZDoom's music system as a standalone library";