Skip to content

Nix doesn't build MacOS #5904

@DieracDelta

Description

@DieracDelta

Description

What I did:

  • Run Macos Sequoia (15.3.1) on a M1 mbp
  • Clone typst at HEAD of master (d199546)
  • nix develop
  • cd typst && cargo build --release

I get the following error:

  = note: ld: library not found for -lSystem
          collect2: error: ld returned 1 exit status

This sort of error is usually fixable by adding pkgs.darwin.apple_sdk.frameworks.System to the devshell. And, this does indeed fix the error if I make my own flake exposing a devshell with rust and that System package. But, I do not know how Crane works, so I'm not sure how to add it to the typst flake. I tried adding the System package to devShells.default, and to commonCrangeArgs.buildInputs`. Neither helped.

Reproduction URL

No response

Operating system

Macos Sequoia (15.3.1) on a M1 mbp

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdevopsPackaging, CI, etc.needs-reproductionCan't reproduce yet.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions