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

Compiling mustang programs with Nix #158

Open
jordanisaacs opened this issue Feb 27, 2023 · 0 comments
Open

Compiling mustang programs with Nix #158

jordanisaacs opened this issue Feb 27, 2023 · 0 comments

Comments

@jordanisaacs
Copy link
Contributor

jordanisaacs commented Feb 27, 2023

I just wanted to share that I was able to get mustang programs compiling & running on Nix through crate2nix. It works by leveraging Nix's cross compilation support & the buildRustCrate function to generate a mustang sysroot. It currently requires using this branch for correct parsing of the vendor field.

The sysroot and build support functions can be found here.
And the app build function is here.

For some more details on how it works see my notes. It probably won't make much sense unless you are proficient with crate2nix.

@jordanisaacs jordanisaacs changed the title Compiling mustang programs on Nix Compiling mustang programs with Nix Feb 27, 2023
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

No branches or pull requests

1 participant