From e13e37b70108f0ebaa75db62eca99bc26898fdc2 Mon Sep 17 00:00:00 2001 From: neirenoir <29525767+neirenoir@users.noreply.github.com> Date: Sat, 26 Mar 2022 19:01:07 +0100 Subject: [PATCH] solc: 0.8.2 -> 0.8.13 (#160957) --- pkgs/development/compilers/solc/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/solc/default.nix b/pkgs/development/compilers/solc/default.nix index eea60786f4af..06aa048a260d 100644 --- a/pkgs/development/compilers/solc/default.nix +++ b/pkgs/development/compilers/solc/default.nix @@ -34,14 +34,21 @@ let sha256 = "18230bg4rq9pmm5f8f65j444jpq56rld4fhmpham8q3vr1c1bdjh"; }; + fmtlibVersion = "8.0.1"; + fmtlibUrl = "https://github.com/fmtlib/fmt/archive/${fmtlibVersion}.tar.gz"; + fmtlib = fetchzip { + url = fmtlibUrl; + sha256 = "1mnvxqsan034d2jiqnw2yvkljl7lwvhakmj5bscwp1fpkn655bbw"; + }; + solc = gccStdenv.mkDerivation rec { pname = "solc"; - version = "0.8.2"; + version = "0.8.13"; # upstream suggests avoid using archive generated by github src = fetchzip { url = "https://github.com/ethereum/solidity/releases/download/v${version}/solidity_${version}.tar.gz"; - sha256 = "11w7sa1y2dirzh84k04fkwbfc6xpjp5jr65w1pmb2pnkjvvf46xq"; + hash = "sha256-cFC9M65kSYgYq9rhBXZKEdfvIMbMaDiDwdPmU8v9s7k="; }; postPatch = '' @@ -49,6 +56,8 @@ let --replace "${jsoncppUrl}" ${jsoncpp} substituteInPlace cmake/range-v3.cmake \ --replace "${range3Url}" ${range3} + substituteInPlace cmake/fmtlib.cmake \ + --replace "${fmtlibUrl}" ${fmtlib} ''; cmakeFlags = [