plan9port: build everything on Darwin #62992
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A commit in 2014 (see #2266) disabled building parts which depended on X11 on Mac OS. There's no explanation given in the pull request. In any case, many people install plan9port on Darwin specifically to use the UI components.
Aside from this, the derivation was broken on Mac OS, probably because people put the
which
andperl
dependencies inside the !isDarwin conditional. Some programs worked, however the static libraries did not build, so this could not be used as a buildInput to build programswhich need the libraries. This fixes that.
Motivation for this change
Specifically experienced on Mac OS:
$out/plan9/bin/rc
was missing.$out/plan9/lib/lib*.a
was missing, preventing9l
from working.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
) (see note)nix path-info -S
before and after)There's a lot of binaries, so I didn't run them all. I did test the things that I needed that were missing on Mac OS (
rc
and9l
), and they work.nix-review
reported that no packages were built.This should be safe.