Skip to content

Add support for cross-compilation, with backcompat #160

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

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

Ericson2314
Copy link
Collaborator

In #152 (comment) I made a PR against a PR, but i get not CI that way, so I'm opening this too.

lopsided98 and others added 2 commits December 10, 2020 21:56
Add test for new way to replace `buildRustCrate` while also testing the
old way.
Copy link
Collaborator

@kolloch kolloch left a comment

Choose a reason for hiding this comment

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

Let's merge this :)

I'd super appreciate it if you contributed some guidance on how to use that for the README.md.

@@ -5,6 +5,9 @@
, lib
, stdenv
, buildRustCrate
, buildRustCrateForPkgs ? if buildRustCrate != null
then lib.warn "`buildRustCrate` is deprecated, use `buildRustCrateForPkgs` instead" (_: buildRustCrate)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I really dig this user guidance, thank you 👍

then lib.warn "`buildRustCrate` is deprecated, use `buildRustCrateForPkgs` instead" (_: buildRustCrate)
else pkgs: pkgs.buildRustCrate
# Deprecated
, buildRustCrate ? null
# This is used as the `crateOverrides` argument for `buildRustCrate`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update comment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh! perhaps I was confused whether the comments were describing the thing above or the thing below.

@kolloch kolloch merged commit ee58c66 into nix-community:master Jan 7, 2021
@Ericson2314 Ericson2314 deleted the cross-compile branch August 7, 2022 15:03
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.

3 participants