|
|
|
@ -176,7 +176,7 @@ let |
|
|
|
|
setupHook = ./framework-setup-hook.sh; |
|
|
|
|
|
|
|
|
|
# Not going to be more specific than this for now |
|
|
|
|
__propagatedImpureHostDeps = stdenv.lib.optionals (name != "Kernel") [ |
|
|
|
|
__propagatedImpureHostDeps = lib.optionals (name != "Kernel") [ |
|
|
|
|
# The setup-hook ensures that everyone uses the impure CoreFoundation who uses these SDK frameworks, so let's expose it |
|
|
|
|
"/System/Library/Frameworks/CoreFoundation.framework" |
|
|
|
|
"/System/Library/Frameworks/${name}.framework" |
|
|
|
@ -249,42 +249,42 @@ in rec { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
overrides = super: { |
|
|
|
|
AppKit = stdenv.lib.overrideDerivation super.AppKit (drv: { |
|
|
|
|
AppKit = lib.overrideDerivation super.AppKit (drv: { |
|
|
|
|
__propagatedImpureHostDeps = drv.__propagatedImpureHostDeps ++ [ |
|
|
|
|
"/System/Library/PrivateFrameworks/" |
|
|
|
|
]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
Carbon = stdenv.lib.overrideDerivation super.Carbon (drv: { |
|
|
|
|
Carbon = lib.overrideDerivation super.Carbon (drv: { |
|
|
|
|
extraTBDFiles = [ "Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering.tbd" ]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
CoreFoundation = stdenv.lib.overrideDerivation super.CoreFoundation (drv: { |
|
|
|
|
CoreFoundation = lib.overrideDerivation super.CoreFoundation (drv: { |
|
|
|
|
setupHook = ./cf-setup-hook.sh; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
CoreMedia = stdenv.lib.overrideDerivation super.CoreMedia (drv: { |
|
|
|
|
CoreMedia = lib.overrideDerivation super.CoreMedia (drv: { |
|
|
|
|
__propagatedImpureHostDeps = drv.__propagatedImpureHostDeps ++ [ |
|
|
|
|
"/System/Library/Frameworks/CoreImage.framework" |
|
|
|
|
]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
CoreMIDI = stdenv.lib.overrideDerivation super.CoreMIDI (drv: { |
|
|
|
|
CoreMIDI = lib.overrideDerivation super.CoreMIDI (drv: { |
|
|
|
|
__propagatedImpureHostDeps = drv.__propagatedImpureHostDeps ++ [ |
|
|
|
|
"/System/Library/PrivateFrameworks/" |
|
|
|
|
]; |
|
|
|
|
setupHook = ./private-frameworks-setup-hook.sh; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
IMServicePlugIn = stdenv.lib.overrideDerivation super.IMServicePlugIn (drv: { |
|
|
|
|
IMServicePlugIn = lib.overrideDerivation super.IMServicePlugIn (drv: { |
|
|
|
|
extraTBDFiles = [ "Versions/A/Frameworks/IMServicePlugInSupport.framework/Versions/A/IMServicePlugInSupport.tbd" ]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
Security = stdenv.lib.overrideDerivation super.Security (drv: { |
|
|
|
|
Security = lib.overrideDerivation super.Security (drv: { |
|
|
|
|
setupHook = ./security-setup-hook.sh; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
QuartzCore = stdenv.lib.overrideDerivation super.QuartzCore (drv: { |
|
|
|
|
QuartzCore = lib.overrideDerivation super.QuartzCore (drv: { |
|
|
|
|
installPhase = drv.installPhase + '' |
|
|
|
|
f="$out/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h" |
|
|
|
|
substituteInPlace "$f" \ |
|
|
|
@ -292,14 +292,14 @@ in rec { |
|
|
|
|
''; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
MetalKit = stdenv.lib.overrideDerivation super.MetalKit (drv: { |
|
|
|
|
MetalKit = lib.overrideDerivation super.MetalKit (drv: { |
|
|
|
|
installPhase = drv.installPhase + '' |
|
|
|
|
mkdir -p $out/include/simd |
|
|
|
|
cp ${lib.getDev sdk}/include/simd/*.h $out/include/simd/ |
|
|
|
|
''; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
WebKit = stdenv.lib.overrideDerivation super.WebKit (drv: { |
|
|
|
|
WebKit = lib.overrideDerivation super.WebKit (drv: { |
|
|
|
|
extraTBDFiles = [ |
|
|
|
|
"Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore.tbd" |
|
|
|
|
"Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy.tbd" |
|
|
|
@ -307,7 +307,7 @@ in rec { |
|
|
|
|
}); |
|
|
|
|
} // lib.genAttrs [ "ContactsPersistence" "UIFoundation" "GameCenter" ] (x: tbdOnlyFramework x {}); |
|
|
|
|
|
|
|
|
|
bareFrameworks = stdenv.lib.mapAttrs framework (import ./frameworks.nix { |
|
|
|
|
bareFrameworks = lib.mapAttrs framework (import ./frameworks.nix { |
|
|
|
|
inherit frameworks libs; |
|
|
|
|
inherit (pkgs.darwin) libobjc; |
|
|
|
|
}); |
|
|
|
|