crane/docs/examples/cross-musl.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
333 B
Markdown
Raw Normal View History

To build a cargo project with musl to crate statically linked binaries, run the
following in a fresh directory:
2022-12-27 01:27:13 +03:00
```sh
nix flake init -t github:ipetkov/crane#cross-musl
```
Alternatively, if you have an existing project already, copy and paste the
following `flake.nix`:
2022-12-27 01:27:13 +03:00
```nix
{{#include ../../examples/cross-musl/flake.nix}}
```