aboutsummaryrefslogtreecommitdiff
path: root/battering/packages/cryptocurrency.scm
blob: 6b11f6c88da00b31a4f3d5236b44a645ba537665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(define-module (battering packages cryptocurrency)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system cmake)
  #:use-module (gnu packages check)
  #:use-module (gnu packages pretty-print)
  #:use-module ((guix licenses)
                #:prefix license:))

(define-public zxing-cpp
  (package
    (name "zxing-cpp")
    (version "2.2.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/nu-book/zxing-cpp")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1dr12rj1b6m436nbwmcd0b1njhmkl26qxy4f1lhcmd4x5x2f2vfa"))))
    (build-system cmake-build-system)
    (native-inputs (list fmt-8 googletest))
    (arguments '(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release"
                                     "-DBUILD_DEPENDENCIES=LOCAL"
                                     "-DBUILD_EXAMPLES=OFF"
                                     "-DBUILD_BLACKBOX_TESTS=OFF"
                                     "-DBUILD_UNIT_TESTS=OFF")))
    (synopsis "C++ port of ZXing")
    (description "ZXing-CPP is a barcode scanning library.")
    (home-page "https://github.com/nu-book/zxing-cpp")
    (license license:asl2.0)))