mirror of
https://github.com/RGBCube/dix
synced 2025-07-27 03:37:45 +00:00
flake: switch to nightly rustfmt
This commit is contained in:
parent
5a532c2b82
commit
6384189a18
2 changed files with 31 additions and 1 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -19,9 +19,30 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"rust-overlay": "rust-overlay",
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rust-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1746758179,
|
||||||
|
"narHash": "sha256-JECUw1YBEsTsVauvupRzE5ykZaJoyhHCpoY87ZZJGas=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "4fd00513eac6b6140c5dced3e1b8133e2369a0f8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -4,6 +4,10 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
systems.url = "github:nix-systems/default";
|
systems.url = "github:nix-systems/default";
|
||||||
|
rust-overlay = {
|
||||||
|
url = "github:oxalica/rust-overlay";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: let
|
outputs = inputs: let
|
||||||
|
@ -32,13 +36,18 @@
|
||||||
(pkgsFor.${system})
|
(pkgsFor.${system})
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
rustfmt
|
|
||||||
bacon
|
bacon
|
||||||
;
|
;
|
||||||
inherit
|
inherit
|
||||||
(pkgsFor.${system}.rustPackages)
|
(pkgsFor.${system}.rustPackages)
|
||||||
clippy
|
clippy
|
||||||
;
|
;
|
||||||
|
|
||||||
|
inherit
|
||||||
|
((pkgsFor.${system}.extend
|
||||||
|
inputs.rust-overlay.overlays.default).rust-bin.nightly.latest)
|
||||||
|
rustfmt
|
||||||
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue