crane/docs/examples/alt-registry.md

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

14 lines
325 B
Markdown
Raw Normal View History

To build a cargo project which uses another crate registry, run the following in
a fresh directory:
2022-12-27 01:27:13 +03:00
```sh
nix flake init -t github:ipetkov/crane#alt-registry
```
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/alt-registry/flake.nix}}
```