From 260d5525726b9964799b62ee9df5dfcadb475368 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sat, 3 Jun 2023 00:20:09 +0100 Subject: [PATCH] Update rust version to 1.68, required by recent `forc-client` version (#78) Also updates the `rust-overlay` flake input in order to enable the new version. --- flake.lock | 30 ++++++++++++++++++++++++------ patches.nix | 8 ++++++++ 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 4117186f1fc..939191b79e9 100644 --- a/flake.lock +++ b/flake.lock @@ -1,12 +1,15 @@ { "nodes": { "flake-utils": { + "inputs": { + "systems": "systems" + }, "locked": { - "lastModified": 1659877975, - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "lastModified": 1681202837, + "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", "owner": "numtide", "repo": "flake-utils", - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "rev": "cfacdce06f30d2b68473a46042957675eebb3401", "type": "github" }, "original": { @@ -47,11 +50,11 @@ ] }, "locked": { - "lastModified": 1675477407, - "narHash": "sha256-mcmGElt04ZaW2Xx7flDQ812X0O2oUlS4rCw1Al4x0qw=", + "lastModified": 1685673048, + "narHash": "sha256-iGmamm2ykfUpekXf02SN/r4dPeU33rekwXpkQyB5L1I=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "1f1d13846ae88826391e5d65d85247a30982671b", + "rev": "19fdc1c7ae8aa90ba50f044496fda6c4b6616f91", "type": "github" }, "original": { @@ -77,6 +80,21 @@ "type": "github" } }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "utils": { "locked": { "lastModified": 1667395993, diff --git a/patches.nix b/patches.nix index 1ef4945e32e..5176b2898ed 100644 --- a/patches.nix +++ b/patches.nix @@ -303,4 +303,12 @@ in [ buildInputs = (m.buildInputs or []) ++ [pkgs.openssl]; }; } + + # `forc-client` requires Rust 1.68 as of 0.40.1. + { + condition = m: m.date >= "2023-05-30"; + patch = m: { + rust = pkgs.rust-bin.stable."1.68.0".default; + }; + } ]