From 94307985bc4796eb815ddaae64046bd0d3e73b2f Mon Sep 17 00:00:00 2001 From: Reno Dakota <170618376+paparodeo@users.noreply.github.com> Date: Mon, 28 Oct 2024 07:10:25 +0000 Subject: [PATCH] ashuffle: link to CF on darwin --- pkgs/applications/audio/ashuffle/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/ashuffle/default.nix b/pkgs/applications/audio/ashuffle/default.nix index 45daafa88d791..3fe5e6716bd33 100644 --- a/pkgs/applications/audio/ashuffle/default.nix +++ b/pkgs/applications/audio/ashuffle/default.nix @@ -7,7 +7,6 @@ , ninja , libmpdclient , yaml-cpp -, darwin }: stdenv.mkDerivation rec { @@ -24,11 +23,14 @@ stdenv.mkDerivation rec { dontUseCmakeConfigure = true; nativeBuildInputs = [ cmake pkg-config meson ninja ]; - buildInputs = [ libmpdclient yaml-cpp ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.CoreFoundation ]; + buildInputs = [ libmpdclient yaml-cpp ]; mesonFlags = [ "-Dunsupported_use_system_yamlcpp=true" ]; + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + NIX_LDFLAGS = "-framework CoreFoundation"; + }; + meta = with lib; { homepage = "https://github.com/joshkunz/ashuffle"; description = "Automatic library-wide shuffle for mpd";