diff --git a/flake.lock b/flake.lock index 956dbd2..f1b0f1a 100644 --- a/flake.lock +++ b/flake.lock @@ -19,9 +19,30 @@ "root": { "inputs": { "nixpkgs": "nixpkgs", + "rust-overlay": "rust-overlay", "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": { "locked": { "lastModified": 1681028828, diff --git a/flake.nix b/flake.nix index 870fdca..1193ad9 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,10 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; systems.url = "github:nix-systems/default"; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs: let @@ -32,13 +36,18 @@ (pkgsFor.${system}) cargo rustc - rustfmt bacon ; inherit (pkgsFor.${system}.rustPackages) clippy ; + + inherit + ((pkgsFor.${system}.extend + inputs.rust-overlay.overlays.default).rust-bin.nightly.latest) + rustfmt + ; }; }; });