2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
18 lines
531 B
Nix
18 lines
531 B
Nix
{ appleDerivation', stdenvNoCC }:
|
|
|
|
appleDerivation' stdenvNoCC {
|
|
patches = [
|
|
# The source release version of math.h is missing some symbols that are actually present
|
|
# in newer SDKs. Patch them into the header to avoid implicit function declaration errors
|
|
# when compiling with newer versions of clang.
|
|
./missing-declarations.patch
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/include
|
|
|
|
cp Source/Intel/math.h $out/include
|
|
cp Source/Intel/fenv.h $out/include
|
|
cp Source/complex.h $out/include
|
|
'';
|
|
}
|