mpd: fix build on darwin#457144
Conversation
|
This is my first PR here. Please tell me if there's anything I need to change to get this merged 😄 |
|
|
Thanks for this fix. I'm slightly unhappy about the consequence that many older devices won't be able to run mpd any more, but that is precisely something that many people repurpose them for. Can you check if this alternative workaround also fixes the build: diff --git i/pkgs/by-name/mp/mpd/package.nix w/pkgs/by-name/mp/mpd/package.nix
index 3bcc8851ae0a..14f600a77a12 100644
--- i/pkgs/by-name/mp/mpd/package.nix
+++ w/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:
#In case it won't I will approve your change to set the deployment target. |
|
Ran into this same error on a couple of my out-of-tree packages. I managed to track it down to the In this case, |
|
@tobim I checked your patch and it also worked. I've updated the branch. |
Great, thanks! Please you drop the original commit instead of adding a revert and change the title of the final commit to something like: |
|
Ok. Done 😄 |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/2625 |
Things done
mpd is failing to build on darwin with this error
This PR fixes the build error by adding
"-mmacosx-version-min=13.3"to CXX_FLAGS.passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.