Skip to content

FR: Add LD_LIBRARY_PATH to devShell #5

@tingerrr

Description

@tingerrr

When developing Typst with the new lld fixes (related to the new default linker of Rust 1.90) we no longer seem to be able to run Typst within the devShell. You simply get:

target/debug/typst: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

I'm actually unsure why we could even run it in the devShell before without explicitly setting LD_LIBRARY_PATH, I was under the impression that the runtime library path was only set for the built package, not the devShell. Regardless of that, not being able to run the program you're building in the devShell is kind of annoying.

Is adding LD_LIBRARY_PATH the idiomatic way to fix this, or is there a better solution? Ironically, I'm asking to fix my own flake for Tytanic where I'm preparing the MSRV bump to 1.91 ahead of time and that is where my tests stop failing (with a flake almost identical to this one before the move), so I tried it with Typst and this flake and ran into the same issue.

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