Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support statically built Nix on Darwin #4320

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matthewbauer
Copy link
Member

This adds support for static Darwin Nix via NixOS/nixpkgs#106115.

  • Need to skip the -Ur flag for darwin cctools
  • Update nixpkgs to my branch (should probably wait until merged into Nixpkgs & maybe released)
  • Enable x86_64-darwin builds.

@edolstra
Copy link
Member

edolstra commented Dec 7, 2020

Yes, we should stick to the Nixpkgs 20.09 branch for now. Otherwise looks good to me.

@domenkozar
Copy link
Member

@matthewbauer care to sync with nixpkgs changes?

@domenkozar
Copy link
Member

@matthewbauer ping :)

@matthewbauer
Copy link
Member Author

Static compilation is broken by NixOS/nixpkgs#107238 - will need to address it in nixpkgs.

@stale
Copy link

stale bot commented Jul 25, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Jul 25, 2021
-Ur is a special flag that appears to only be provided by GNU
Binutils. So we need to disable it when another toolchain is being
used. While GNU Binutils can be used on many platforms, we will assume
it’s only Linux for now. Note that this only effects --disable-shared
Nix builds.
@stale stale bot removed stale labels Mar 11, 2023
@Ericson2314 Ericson2314 added macos Nix on macOS, aka OS X, aka darwin with-tests Issues related to testing. PRs with tests have some priority labels Mar 11, 2023
@Ericson2314 Ericson2314 marked this pull request as draft March 13, 2023 12:23
@Ericson2314
Copy link
Member

Hmm since I rebased the regular Darwin and static Darwin builds are the dame derivation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macos Nix on macOS, aka OS X, aka darwin with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants