diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 8624506e52e4..30a3fa8be994 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -129,6 +129,12 @@ stdenv.mkDerivation (finalAttrs: { '' ]; + # Ensure we reference 'lib' (not 'out') of Swift. + # TODO: Remove this once the Swift wrapper doesn’t include these. + preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' + export SWIFT_LIB_DYNAMIC="${lib.getLib swift.swift}/lib/swift/macosx" + ''; + mesonFlags = [ (lib.mesonOption "default_library" "shared") (lib.mesonBool "libmpv" true)