diff --git a/flake.lock b/flake.lock index 9a3064c5..1fb9ee95 100644 --- a/flake.lock +++ b/flake.lock @@ -37,26 +37,7 @@ "root": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" - } - }, - "rust-overlay": { - "inputs": { - "nixpkgs": ["nixpkgs"] - }, - "locked": { - "lastModified": 1718936281, - "narHash": "sha256-jslEDCVFoRcNilJT0xYGSxqMjOe+USnLknpHIAZJ02A=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "c9a793a5278f711a59fe77b9bf54b215667022c6", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" + "nixpkgs": "nixpkgs" } }, "systems": { diff --git a/flake.nix b/flake.nix index c85cabf1..1ada2a4c 100644 --- a/flake.nix +++ b/flake.nix @@ -4,18 +4,13 @@ inputs = { flake-utils.url = "github:numtide/flake-utils"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - rust-overlay = { - url = "github:oxalica/rust-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; - }; }; - outputs = { self, nixpkgs, flake-utils, rust-overlay } @ imports: ( + outputs = { self, nixpkgs, flake-utils } @ imports: ( flake-utils.lib.eachDefaultSystem ( system: ( let overlays = [ - (import rust-overlay) ]; pkgs = import nixpkgs { inherit overlays system; }; baseDependencies = with pkgs; [ @@ -34,7 +29,9 @@ }; doc-tests = pkgs.mkShell { buildInputs = with pkgs; [ - rust-bin.stable.latest.default + cargo + rustc + rustfmt ] ++ baseDependencies; };