This was done with booxter’s fantastic [nix-clean-apple_sdk] tool,
simply modified to look for `libobjc` rather than the existing list he
already used in <https://github.com/NixOS/nixpkgs/pull/398707>. Some
manual work was applied, including cleaning up a string interpolation
in the terrifying MacVim derivation, stray comments, empty lists,
function parameters, and `inherit`s, including all of the references in
`all-packages.nix`.
[nix-clean-apple_sdk]: https://github.com/booxter/nix-clean-apple_sdk
There is still a remaining warning:
ld: warning: object file (/nix/store/mn46c4sb8qcjmw6iy1dh9rivk8i8kg5d-ponyc-0.58.6/lib/pony/0.58.6/lib/native/libponyrt.a(except_try_catch.o)) was built for newer macOS version (15.0) than being linked (13.0)
but I suspect that might have to do with our toolchain’s target
triple or something and anyway I’ve spent more time on this than
I wanted to already. The package was broken beforehand so this is
an improvement.
Broken since at least 24.11, stuck on a version from 2018, and no
longer relevant with the new SDK pattern. A newer version is packaged
separately for the Swift compiler, so maybe it could be revived there
if people clamour for a source‐built CoreFoundation in the future.
The F* team significantly cleaned up the build. Based on the Nix
expression here:
https://github.com/FStarLang/FStar/blob/master/.nix/fstar.nix
Move to by-name and adopt the Z3 4.8.5 patches since we are now the only
package that depends on Z3 4.8.5 in nixpkgs.
This fixes darwin build for xidel, among other things.
Note: there are some impurities in the package where xcode and other
paths may be injected into build environment. These are left out of
scope for this patch, to be dealt by other interested parties.
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
They are not doing anything right now. This is in preparation for their
complete removal from the tree.
Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.
Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>