Unverified Commit 1feea796 authored by Emily's avatar Emily Committed by GitHub
Browse files

ashuffle: link to CF on darwin (#351821)

parents 66f01b7a 94307985
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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";