From 507c9d83371b9c8b0e7abee0a0c8793b6e349ba2 Mon Sep 17 00:00:00 2001 From: kero0 Date: Fri, 31 Oct 2025 20:25:34 -0400 Subject: [PATCH] mpd: fix build on darwin --- pkgs/by-name/mp/mpd/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mp/mpd/package.nix b/pkgs/by-name/mp/mpd/package.nix index 3bcc8851ae0a..661f95ed122b 100644 --- a/pkgs/by-name/mp/mpd/package.nix +++ b/pkgs/by-name/mp/mpd/package.nix @@ -234,7 +234,13 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \ --replace kAudioObjectPropertyElement{Main,Master} \ --replace kAudioHardwareServiceDeviceProperty_Virtual{Main,Master}Volume - ''; + '' + + + lib.optionalString + (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "13.3") + '' + sed -i "/subdir('time')/d" test/meson.build + ''; # Otherwise, the meson log says: #