darwin.apple_sdk: add libs.simd stub

Making it fail at build time allows it to be used unversioned with `overrideSDK`. Unlike the QuickTime framework, which is present in the base SDK and was later removed, simd was added later.
This commit is contained in:
Randy Eckenrode 2024-07-11 19:31:42 -04:00
parent c078f3fb7b
commit e125b70c8b
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cpio, pbzx, pkgs, lib, darwin-stubs, print-reexports }:
{ stdenv, stdenvNoCC, fetchurl, cpio, pbzx, pkgs, lib, darwin-stubs, print-reexports }:
let
# sadly needs to be exported because security_tool needs it
@ -263,6 +263,15 @@ in rec {
ln -s libsandbox.1.tbd $out/lib/libsandbox.tbd
'';
};
simd = stdenvNoCC.mkDerivation {
name = "apple-lib-simd";
preferLocalBuild = true;
allowSubstitutes = false;
buildCommand = "echo 'simd library not available in the 10.12 SDK'; exit 1";
};
};
overrides = super: {