From 81945c18446c0bdb0c9125baf06c6bda8d1b90df Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 8 May 2023 15:50:50 +0200 Subject: [PATCH] [bug reported upstream for release info] gnu: cpp-mustache: Update to 5.0 to fix build. * gnu/packages/cpp.scm (cpp-mustache): Update to 5.0. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/cpp.scm | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 1a892d7b78..439e800d52 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -34,6 +34,7 @@ ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2023 Sughosha ;;; Copyright © 2023 Artyom V. Poptsov +;;; Copyright © 2023 Denis 'GNUtoo' Carikli ;;; ;;; This file is part of GNU Guix. ;;; @@ -2015,29 +2016,35 @@ (define-public gulrak-filesystem (define-public cpp-mustache (package (name "cpp-mustache") - (version "4.1") + (version "5.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/kainjow/Mustache") - (commit (string-append "v" version)))) + (commit "4ed8c0b5a2a43d59394bd6900dc04e738dbf8c02"))) (file-name (git-file-name name version)) (sha256 (base32 - "0r9rbk6v1wpld2ismfsk2lkhbyv3dkf0p03hkjivbj05qkfhvlbb")))) + "0qwrg35gby851viwd6dgrc346712701a0gll8a0m4xs8invxavrh")))) (build-system cmake-build-system) (arguments - (list #:phases + (list #:configure-flags + #~(list + (string-append "-DCMAKE_CXX_FLAGS=-I" + #$(this-package-native-input "catch2") + "/include/catch2/")) + #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "./mustache")))) + (invoke "./tests/mustache-unit-tests")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (install-file "../source/mustache.hpp" (string-append (assoc-ref outputs "out") "/include"))))))) + (native-inputs (list catch2)) (home-page "https://github.com/kainjow/Mustache") (synopsis "Mustache text templates for modern C++") (description "@code{cpp-mustache} is a Mustache implementation for C++ 11 -- 2.40.1