gnu: solidity: Update to 0.8.25.

* gnu/packages/solidity.scm (solidity): Update to 0.8.25.
[arguments]: Add configure-flag to allow an older version of z3.
[inputs]: Replace fmt-8.0 with fmt.

Change-Id: I1501d16323566c066c58c1c4bbf90dd17a23f021
This commit is contained in:
Efraim Flashner 2024-05-06 17:41:07 +03:00
parent 614bd4a777
commit 5a69a52d74
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -1,5 +1,6 @@
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net> ;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com> ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
;;; Copyright © 2024 Efraim Flashner <efraim@flashner.co.il>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -34,7 +35,7 @@
(define-public solidity (define-public solidity
(package (package
(name "solidity") (name "solidity")
(version "0.8.15") (version "0.8.25")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -42,10 +43,12 @@
(string-append "https://github.com/ethereum/solidity/releases/download/v" (string-append "https://github.com/ethereum/solidity/releases/download/v"
version "/solidity_" version ".tar.gz")) version "/solidity_" version ".tar.gz"))
(sha256 (sha256
(base32 "0j9a8y5fizarl9yhbnwvd0x1nm6qsbskqb7j1fwsyqx47w5sa82p")))) (base32 "0gr7mcrng7lkqx968n48js77kwz7fk8230yj0bhp1vw5hdglpxfy"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:configure-flags
#~(list "-DSTRICT_Z3_VERSION=OFF")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'unbundle-3rd-party-dependencies (add-after 'unpack 'unbundle-3rd-party-dependencies
@ -62,7 +65,7 @@
(substitute* "libsolutil/JSON.cpp" (substitute* "libsolutil/JSON.cpp"
(("JSONCPP_VERSION_PATCH ==") "JSONCPP_VERSION_PATCH >="))))))) (("JSONCPP_VERSION_PATCH ==") "JSONCPP_VERSION_PATCH >=")))))))
(inputs (inputs
(list boost-static fmt-8.0 jsoncpp range-v3 z3)) (list boost-static fmt jsoncpp range-v3 z3))
(native-inputs (native-inputs
(list python ncurses findutils)) (list python ncurses findutils))
(home-page "https://solidity.readthedocs.io") (home-page "https://solidity.readthedocs.io")