mpv: restore non‐obsolete Swift library path hack (#356909)

This commit is contained in:
Emily
2024-11-18 10:59:45 +00:00
committed by GitHub
+6
View File
@@ -129,6 +129,12 @@ stdenv.mkDerivation (finalAttrs: {
''
];
# Ensure we reference 'lib' (not 'out') of Swift.
# TODO: Remove this once the Swift wrapper doesnt 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)