Change:
Steps to reproduce the behavior: dosbox-staging on darwin Complaining that alsa-lib not available on darwin I suggest referencing the derivation of in which use to opt-in dependencies P.S. wonder why the maintenance of this package is separated from and Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
I don't have a Darwin machine. Nice. A full log would be nicer of course, but nice nonetheless. Wonder why they should be maintained by the same people.

Discussion:
, SDL2_net , alsa-lib , copyDesktopItems <ins> , darwin </ins> , fluidsynth , glib , gtest

hash = "sha256-WtTVSWWSlfXrdPVsnlDe4P5K/Fnj4QsOzx3Wo/Kusmg="; includes = [ "src/gui/meson.build" ]; }) <ins> ] # Pagesize detection via syscall; remove when next stable version arrives ++ [ (fetchpatch { # Added as a parent commit of 7e20f6e # Fix ppc64le backend and 64K page size support (#2828) name = "meson-add-ppc64.patch"; url = "https://github.com/dosbox-staging/dosbox-staging/commit/765bcc2b1d87050a4ea366bf22e1db075ad5660b.patch"; hash = "sha256-RtkidyF7w6RrPmCKK4Bd+3FtAn/+/38xk2cl32+yzxw="; includes = [ "meson.build" ]; }) (fetchpatch { # Added as a parent commit of 7e20f6e # Account for debian powerpc prefix (instead of ppc) name = "meson-powerpc64le.patch"; url = "https://github.com/dosbox-staging/dosbox-staging/commit/d44aa7441cd871ffac08974f22af7a735a839288.patch"; hash = "sha256-oMZtfmB1CRlDWyXwEWc3XzC+XxKazXDgo+jUiNBoJDw="; includes = [ "meson.build" ]; }) (fetchpatch { # Added as a parent commit of 7e20f6e # Restore the PowerPC dynrec core to working order name = "meson-option-write-or-execute.patch"; url = "https://github.com/dosbox-staging/dosbox-staging/commit/ef86642de390839afc77b2b591a6ea9ac43909b3.patch"; hash = "sha256-htOKEaXRRy28XNMX/t6uFTBLCkTr7YPtfmI9UyIBiz4="; includes = [ "meson_options.txt" ]; }) (fetchpatch { # Use a system call to detect the page size name = "meson-detect-pagesize-by-syscall.patch"; url = "https://github.com/dosbox-staging/dosbox-staging/commit/7e20f6e401956a7a308f1b3462294d7ac9fa5db8.patch"; hash = "sha256-QW9lpHWCYSlQFgTqX/UxHAAWisz4wfPrdjLqROn/wR0="; }) </ins> ]; nativeBuildInputs = [

]; buildInputs = [ <del> alsa-lib </del> fluidsynth glib iir1

SDL2_image SDL2_net speexdsp <del> ]; </del> <ins> ] ++ lib.optionals stdenv.isLinux [ alsa-lib ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AudioUnit Carbon Cocoa ]); </ins> desktopItems = [ (makeDesktopItem {

<ins> { lib , stdenv , fetchFromGitHub , cmake }: stdenv.mkDerivation (finalAttrs: { pname = "iir1"; version = "1.9.4"; src = fetchFromGitHub { owner = "berndporr"; repo = "iir1"; rev = finalAttrs.version; hash = "sha256-T8gl51IkZIGq+6D5ge4Kb3wm5aw7Rhphmnf6TTGwHbs="; }; nativeBuildInputs = [ cmake ]; meta = { homepage = "https://berndporr.github.io/iir1/"; description = "A DSP IIR realtime filter library written in C++"; downloadPage = "https://github.com/berndporr/iir1"; changelog = "https://github.com/berndporr/iir1/releases/tag/${finalAttrs.src.rev}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ AndersonTorres ]; platforms = lib.platforms.unix; }; }) </ins>

<del> { lib , stdenv , fetchFromGitHub , cmake }: stdenv.mkDerivation rec { pname = "iir1"; version = "1.9.4"; src = fetchFromGitHub { owner = "berndporr"; repo = "iir1"; rev = version; hash = "sha256-T8gl51IkZIGq+6D5ge4Kb3wm5aw7Rhphmnf6TTGwHbs="; }; nativeBuildInputs = [ cmake ]; meta = { description = "A DSP IIR realtime filter library written in C++"; downloadPage = "https://github.com/berndporr/iir1"; homepage = "http://berndporr.github.io/iir1/"; license = lib.licenses.mit; maintainers = [ lib.maintainers.AndersonTorres ]; platforms = lib.platforms.unix; }; } </del>

ip2location-c = callPackage ../development/libraries/ip2location-c { }; <del> iir1 = callPackage ../development/libraries/iir1 { }; </del> irrlicht = if !stdenv.isDarwin then callPackage ../development/libraries/irrlicht { } else callPackage ../development/libraries/irrlicht/mac.nix {