Initial commit
This commit is contained in:
14
skills/nix-packaging/rust/rust.md
Normal file
14
skills/nix-packaging/rust/rust.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Packaging Rust Applications with Nix
|
||||
|
||||
See [codex](./codex/package.nix) for an example.
|
||||
|
||||
## Updating an Existing Rust Package
|
||||
|
||||
Besides the general update steps, also update the `cargoHash`:
|
||||
|
||||
```bash
|
||||
# Set cargoHash = ""; then run nix build
|
||||
# Nix will fail and show: "got: sha256-XXXXX"
|
||||
```
|
||||
|
||||
If `Cargo.toml` dependencies changed, the build will automatically fetch new dependencies after you update the `cargoHash`.
|
||||
Reference in New Issue
Block a user