~ruther/guix-local

1cd2a221f339fe5640760284cd7cfaac5485ae88 — Nicolas Graves 6 months ago 9f36748
gnu: fasttext: Fix build.

* gnu/packages/machine-learning.scm (fasttext):
[arguments]<#:phases>: Add phase 'gcc-14-fix.

Change-Id: Ib3f4a49b65e84f75f182637764fb54e24f3a5b5b
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 10 insertions(+), 1 deletions(-)

M gnu/packages/machine-learning.scm
M gnu/packages/machine-learning.scm => gnu/packages/machine-learning.scm +10 -1
@@ 185,7 185,16 @@ frameworks.")
        (base32 "07cz2ghfq6amcljaxpdr5chbd64ph513y8zqmibfx2xwfp74xkhn"))))
    (build-system cmake-build-system)
    ;; Tests require downloading of test data.
    (arguments (list #:tests? #false))
    (arguments
     (list
      #:tests? #false
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'gcc-14-fix
            (lambda _
              (substitute* "src/args.cc"
                (("#include <unordered_map>" all)
                 (string-append all "\n#include <cstdint>"))))))))
    (home-page "https://github.com/facebookresearch/fastText")
    (synopsis "Library for fast text representation and classification")
    (description "fastText is a library for efficient learning of word