diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-10-20 09:51:51 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-10-21 12:05:09 -0400 |
commit | 1974a253012c399839dea2ebce8fa88e1157ce4a (patch) | |
tree | fa8e791b1731a0aa3d12fa28591dd8bdaec0be4b /pkgs/os-specific/darwin/apple-source-releases/Libm/default.nix | |
parent | cad1b2525d506ce75b9e3de3343a63722f2063e9 (diff) | |
download | nixpkgs-1974a253012c399839dea2ebce8fa88e1157ce4a.tar nixpkgs-1974a253012c399839dea2ebce8fa88e1157ce4a.tar.gz nixpkgs-1974a253012c399839dea2ebce8fa88e1157ce4a.tar.bz2 nixpkgs-1974a253012c399839dea2ebce8fa88e1157ce4a.tar.lz nixpkgs-1974a253012c399839dea2ebce8fa88e1157ce4a.tar.xz nixpkgs-1974a253012c399839dea2ebce8fa88e1157ce4a.tar.zst nixpkgs-1974a253012c399839dea2ebce8fa88e1157ce4a.zip |
darwin.Libm: add missing function declarations
The patch in this commit is based on the SDK header, which has an ASPL license header even though the updated header is not part of the source distribution of Libm. Adding the missing declarations allows packages such as jq, Ruby, and Guile to build without requiring an SDK that is not built from the source releases.
Diffstat (limited to 'pkgs/os-specific/darwin/apple-source-releases/Libm/default.nix')
-rw-r--r-- | pkgs/os-specific/darwin/apple-source-releases/Libm/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/Libm/default.nix b/pkgs/os-specific/darwin/apple-source-releases/Libm/default.nix index 6e6712f375e..931bebeae5d 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/Libm/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/Libm/default.nix @@ -1,6 +1,13 @@ { 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 |