mpd: fix build with ffmpeg 6.1

This commit is contained in:
arthsmn 2023-12-03 15:51:31 -03:00
parent b96d3a4f6c
commit 10ea643996

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, glib, systemd, boost, fmt, buildPackages { lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, glib, systemd, boost, fmt, buildPackages
# Darwin inputs # Darwin inputs
, AudioToolbox, AudioUnit , AudioToolbox, AudioUnit
# Inputs # Inputs
@ -148,6 +148,15 @@ let
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];
# FIXME: see if it's still necessary and remove on next release
patches = [
(fetchpatch {
url = "https://github.com/MusicPlayerDaemon/MPD/commit/50c1e3738a672f933560247b5527d365d17b1c02.patch";
hash = "sha256-99XL3Yb1f9yrD0p+Ssn1HfAHrVoO/ky6bp3e1n1+yvg=";
excludes = [ "NEWS" ];
})
];
postPatch = lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "12.0") '' postPatch = lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "12.0") ''
substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \ substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \
--replace kAudioObjectPropertyElement{Main,Master} \ --replace kAudioObjectPropertyElement{Main,Master} \