Skip to content

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
rust-overlay.nix Outdated
# 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