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

rust-overlay: support for darwin #306

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

rick68
Copy link

@rick68 rick68 commented Mar 5, 2023

No description provided.

ggreif added a commit to ggreif/nixpkgs-mozilla that referenced this pull request Apr 25, 2023
learned tricks from mozilla#306
# The SYSROOT is determined by using the librustc_driver-*.so.
# So, we need to point to the *.so files in our derivation.
# The SYSROOT is determined by using the librustc_driver-*.{so,dylib}.
# So, we need to point to the *.{so,dylib} files in our derivation.
Copy link
Contributor

@Artturin Artturin Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps use stdenv.hostPlatform.extensions.sharedLibrary

nix-repl> stdenv.hostPlatform.extensions.sharedLibrary
".so"

example like here https://github.com/NixOS/nixpkgs/blob/b74a338b70c53011149d3c0e198b61fe43344d07/pkgs/shells/powershell/default.nix#L40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants