1
1
forked from extern/flakelight

Update Rust example in README

This commit is contained in:
Archit Gupta 2023-09-13 23:42:48 -07:00
parent a463960781
commit d75f8fea8b

View File

@ -59,9 +59,19 @@ available.
### Rust package
The following is an example flake for a Rust project using `flakelight-rust`.
The following is an example flake for a Rust project using `flakelight-rust`,
invoked by using `flakelight-rust`'s wrapper.
Package metadata is taken from the project's `Cargo.toml`.
```nix
{
inputs.flakelight-rust.url = "github:accelbread/flakelight-rust";
outputs = { flakelight-rust, ... }: flakelight-rust ./. { };
}
```
Alternatively, you can just use the `flakelight-rust` module as follows:
```nix
{
inputs = {
@ -74,7 +84,7 @@ Package metadata is taken from the project's `Cargo.toml`.
}
```
This flake exports the following:
The above flakes export the following:
- Per-system attributes for default systems (`x86_64-linux` and `aarch64-linux`)
- `packages.${system}.default` attributes for each system