Skip to content

Commit

Permalink
Explain argument forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
P-E-Meunier committed Dec 11, 2017
1 parent fc84be3 commit 1cd1fca
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/languages-frameworks/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,21 @@ rec {
}
```

Another situation is when we want to override a nested
dependency. This actually works in the exact same way, since the
`crateOverrides` parameter is forwarded to the crate's
dependencies. For instance, to override the build inputs for crate
`libc` in the example above, where `libc` is a dependency of the main
crate, we could do:

```
(import helo.nix).helo_0_1_0.override {
crateOverrides = defaultCrateOverrides // {
libc = attrs: { buildInputs = []; };
};
};
}
```

Three more parameters can be overridden:

Expand Down

1 comment on commit 1cd1fca

@sjmackenzie
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick helo

Please sign in to comment.