forked from extern/flakelight
Pass inputs in examples
This commit is contained in:
parent
c576f0b59a
commit
9dca671d0e
13
API_GUIDE.md
13
API_GUIDE.md
@ -109,19 +109,6 @@ To use a different nixpkgs from the built-in default:
|
||||
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
outputs = { flakelight, ... }:
|
||||
flakelight ./. { };
|
||||
}
|
||||
```
|
||||
|
||||
You can also explicitly pass in inputs, overriding defaults, as follows:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
||||
flakelight.url = "github:nix-community/flakelight";
|
||||
};
|
||||
outputs = { flakelight, ... }@inputs:
|
||||
flakelight ./. {
|
||||
inherit inputs;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user