diff --git a/flake.lock b/flake.lock index 7f89359..179f46e 100644 --- a/flake.lock +++ b/flake.lock @@ -113,11 +113,11 @@ ] }, "locked": { - "lastModified": 1744684506, - "narHash": "sha256-pDPDMT1rdkTWi8MIoZ67gT3L817R7P0Jo+PP+BrnyJI=", + "lastModified": 1774321696, + "narHash": "sha256-g18xMjMNla/nsF5XyQCNyWmtb2UlZpkY0XE8KinIXAA=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "47beae969336c05e892e1e4a9dbaac9593de34ab", + "rev": "49a67e6894d4cb782842ee6faa466aa90c92812d", "type": "github" }, "original": { diff --git a/nix/pkgs/rust.nix b/nix/pkgs/rust.nix index 4c3024f..6cb9281 100644 --- a/nix/pkgs/rust.nix +++ b/nix/pkgs/rust.nix @@ -8,9 +8,9 @@ let inherit (pkgs) lib stdenv; src = ../../.; - rustToolchainFile = builtins.fromTOML (builtins.readFile ../../rust-toolchain.toml); - rustChannel = rustToolchainFile.toolchain.channel; - craneLib = (crane.mkLib pkgs).overrideToolchain (pkgs.rust-bin.stable.${rustChannel}.default); + craneLib = (crane.mkLib pkgs).overrideToolchain ( + pkgs.rust-bin.fromRustupToolchainFile ../../rust-toolchain.toml + ); commonDeps = { nativeBuildInputs = with pkgs; [ pkg-config