forked from extern/flakelight
Remove nixpkgs overrides from some examples
This commit is contained in:
parent
f684fd8b03
commit
f4edb1589b
23
README.md
23
README.md
@ -35,9 +35,9 @@ The following modules are also available:
|
|||||||
|
|
||||||
### Shell
|
### Shell
|
||||||
|
|
||||||
The following is an example flake.nix for a devshell. It outputs
|
The following is an example flake.nix for a devshell, using the passed in
|
||||||
`devShell.${system}.default` attributes for each configured system. Systems can
|
nixpkgs. It outputs `devShell.${system}.default` attributes for each configured
|
||||||
be left unset to use the default.
|
system. Systems can be left unset to use the default.
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
@ -65,13 +65,11 @@ Package metadata is taken from the project's `Cargo.toml`.
|
|||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
||||||
flakelight.url = "github:accelbread/flakelight";
|
flakelight.url = "github:accelbread/flakelight";
|
||||||
flakelight-rust.url = "github:accelbread/flakelight-rust";
|
flakelight-rust.url = "github:accelbread/flakelight-rust";
|
||||||
};
|
};
|
||||||
outputs = { flakelight, flakelight-rust, ... }@inputs: flakelight ./. {
|
outputs = { flakelight, flakelight-rust, ... }@inputs: flakelight ./. {
|
||||||
imports = [ flakelight-rust.flakelightModules.default ];
|
imports = [ flakelight-rust.flakelightModules.default ];
|
||||||
inherit inputs;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -99,14 +97,9 @@ The following example flake is for a C project with a simple `make` setup.
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs.flakelight.url = "github:accelbread/flakelight";
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
outputs = { flakelight, ... }:
|
||||||
flakelight.url = "github:accelbread/flakelight";
|
|
||||||
};
|
|
||||||
outputs = { flakelight, ... }@inputs:
|
|
||||||
flakelight ./. {
|
flakelight ./. {
|
||||||
inherit inputs;
|
|
||||||
|
|
||||||
description = "My C application.";
|
description = "My C application.";
|
||||||
license = "AGPL-3.0-or-later";
|
license = "AGPL-3.0-or-later";
|
||||||
|
|
||||||
@ -149,13 +142,9 @@ like the following. Most attributes can be autoloaded.
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs.flakelight.url = "github:accelbread/flakelight";
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
||||||
flakelight.url = "github:accelbread/flakelight";
|
|
||||||
};
|
|
||||||
outputs = { flakelight, ... }@inputs:
|
outputs = { flakelight, ... }@inputs:
|
||||||
flakelight ./. {
|
flakelight ./. {
|
||||||
inherit inputs;
|
|
||||||
description = "My C application.";
|
description = "My C application.";
|
||||||
license = "AGPL-3.0-or-later";
|
license = "AGPL-3.0-or-later";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user