Skip to content
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Compiling mustang programs with Nix #158

Open

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.

Activity

  1. changed the title [-]Compiling mustang programs on Nix[/-] [+]Compiling mustang programs with Nix[/+] on Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions