summary refs log tree commit diff
path: root/gnu/packages/cpp.scm
diff options
context:
space:
mode:
authorJonathan Brielmaier <jonathan.brielmaier@web.de>2021-10-03 19:51:32 +0000
committerJonathan Brielmaier <jonathan.brielmaier@web.de>2021-10-03 19:53:56 +0000
commitf531c977a116a6cbc1ffb89a862355a1be54ac6b (patch)
tree8782f01d12e687629ea6771898d92039c7ea2fde /gnu/packages/cpp.scm
parent58e4de03f8e497350bc24b5fd559ff817e624fbc (diff)
downloadguix-f531c977a116a6cbc1ffb89a862355a1be54ac6b.tar.gz
gnu: range-v3: Fix build.
* gnu/packages/patches/range-v3-build-with-gcc10.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/cpp.scm (range-v3)[source]: Use patch.
[native-inputs]: Add gcc@9 for a succesful build.
Diffstat (limited to 'gnu/packages/cpp.scm')
-rw-r--r--gnu/packages/cpp.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 7ac4b0c39b..154d5ae333 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -89,11 +89,13 @@
          (commit version)))
        (file-name
         (git-file-name name version))
+       (patches (search-patches "range-v3-build-with-gcc10.patch"))
        (sha256
         (base32 "18230bg4rq9pmm5f8f65j444jpq56rld4fhmpham8q3vr1c1bdjh"))))
     (build-system cmake-build-system)
     (native-inputs
      `(("doxygen" ,doxygen)
+       ("gcc" ,gcc-9)
        ("perl" ,perl)))
     (inputs
      `(("boost" ,boost)))