Skip to content

Commit

Permalink
ashuffle: link to CF on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
paparodeo committed Oct 28, 2024
1 parent cae0fd4 commit 9430798
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 9430798

Please sign in to comment.