Skip to content

Compiling mustang programs with Nix #158

@jordanisaacs

Description

@jordanisaacs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions