blob: bee1a554449da027764f09dced1173d165f07362 (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
(define-module (px packages aidc)
#:use-module (guix gexp)
#:use-module (gnu packages)
#:use-module ((guix licenses)
#:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (gnu packages autotools)
#:use-module (gnu packages pretty-print)
#:use-module (gnu packages check)
#:use-module (gnu packages qt)
#:use-module (gnu packages stb)
#:use-module (guix build-system cmake))
(define-public zxing-cpp-08978e2
(let ((revision "0")
(commit "08978e2c6cf3befb54320c9ca8ab33f7775e6ec4"))
(package
(name "zxing-cpp-08978e2")
(version (git-version "1.2.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nu-book/zxing-cpp")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "13wzs7dhb7vv7j9i40gib4ns9bfsp4kkdx4gkgykgqqb4imvvvvp"))))
(arguments
'(#:tests? #f
#:configure-flags '("-DBUILD_BLACKBOX_TESTS=OFF")))
(build-system cmake-build-system)
(native-inputs (list fmt-8 googletest))
(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))))
(define-public scodes
(let ((revision "0")
(commit "fac97f2800db37c7f018813c16038799e6e224cd"))
(package
(name "scodes")
(version (git-version "0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/scytheStudio/SCodes")
(commit commit)))
(file-name (git-file-name name version))
(patches (search-patches "scodes-zxing-path.patch"))
(sha256
(base32 "0vbbz8z04c3w370vbjq85xd9kkykcb0xm3rrkcb71k0ycrrhc183"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ;no test suite
#:phases (modify-phases %standard-phases
(add-after 'unpack 'zxing-path-patch
(lambda* (#:key inputs #:allow-other-keys)
(let ((zxing-cpp-08978e2 (assoc-ref inputs
"zxing-cpp-08978e2")))
(chdir "src")
(substitute* "CMakeLists.txt"
(("/usr/local/include/ZXing")
(string-append zxing-cpp-08978e2 "/include/ZXing")))
(invoke "cat" "CMakeLists.txt") #t))))))
(inputs (list qtbase-5
qtdeclarative-5
qtmultimedia-5
qtquickcontrols-5
qtquickcontrols2-5
stb-image
stb-image-write
zxing-cpp-08978e2))
(synopsis "Qt & Qml wrapper for ZXing library")
(description "Qt & Qml wrapper for ZXing library")
(home-page "https://github.com/scytheStudio/SCodes")
(license license:asl2.0))))
|