From 5f7384a382124c46b77bd9537ae643caba4fea8f Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sun, 3 Jul 2022 17:37:35 +0800 Subject: [PATCH 5/6] gnu: Add fmt-for-solidity. * gnu/packages/pretty-print.scm (fmt-for-solidity): New variable. --- gnu/packages/pretty-print.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm index 4ee46b4e89..9745a9ba10 100644 --- a/gnu/packages/pretty-print.scm +++ b/gnu/packages/pretty-print.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2020 Paul Garlick ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2021 Greg Hogan +;;; Copyright © 2022 Zhu Zihao ;;; ;;; This file is part of GNU Guix. ;;; @@ -187,6 +188,19 @@ (define-public fmt ;; The library is bsd-2, but documentation and tests include other licenses. (license (list bsd-2 bsd-3 psfl)))) +(define-public fmt-for-solidity + (package + (inherit fmt) + (name "fmt-for-solidity") + (version "8.0.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/fmtlib/fmt/releases/download/" + version "/fmt-" version ".zip")) + (sha256 + (base32 "1gqmsk4r93x65cqs8w7zhfiv70w5fv8279nrblggqm4mmdpaa9x6")))))) + (define-public fmt-7 (package (inherit fmt) (version "7.1.3") -- 2.36.1