Skip to content

Commit

Permalink
ashuffle: link to CF on darwin (#351821)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 28, 2024
2 parents 66f01b7 + 9430798 commit 1feea79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/applications/audio/ashuffle/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
, ninja
, libmpdclient
, yaml-cpp
, darwin
}:

stdenv.mkDerivation rec {
Expand All @@ -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";
Expand Down

0 comments on commit 1feea79

Please sign in to comment.