aboutsummaryrefslogtreecommitdiff
path: root/battering/packages/cryptocurrency.scm
blob: ab90d215fe04f554a2b4cfeb4905936a7c4bc9ea (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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
(define-module (battering packages cryptocurrency)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix download)
  #:use-module (guix build-system cmake)
  #:use-module (gnu packages check)
  #:use-module (gnu packages pretty-print)
  #:use-module (guix gexp)
  #:use-module (guix utils)
  #:use-module (gnu packages aidc)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages crypto)
  #:use-module (gnu packages dns)
  #:use-module (gnu packages documentation)
  #:use-module (gnu packages graphviz)
  #:use-module (gnu packages libusb)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages protobuf)
  #:use-module (gnu packages python)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages readline)
  #:use-module (gnu packages tls)
  #:use-module (gnu packages vulkan)
  #:use-module (gnu packages xdisorg)
  #: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)))

(define-public feather
  (package
    (name "feather")
    (version "2.7.0")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://featherwallet.org/files/releases/source/feather-"
                    version ".tar.gz"))
              (sha256
               (base32 "1ia35czdvw3h5l9aby5kkddld6zb4m0lvlvap6mpds50qzgi4219"))))
    (build-system cmake-build-system)
    (native-inputs (list pkg-config
                         python
                         doxygen
                         graphviz
                         qttools))
    (inputs (list openssl
                  `(,unbound "out")
                  protobuf
                  zlib
                  hidapi
                  readline
                  boost
                  qrencode
                  libusb
                  zxing-cpp
                  qtbase
                  libxkbcommon
                  vulkan-headers
                  qtsvg
                  qtwebsockets
                  qtmultimedia
                  libsodium))
    (arguments (list #:tests? #f
                     #:configure-flags
                     #~(list "-DCMAKE_BUILD_TYPE=Release"
                             "-DARCH=x86-64"
                             (string-append "-DBUILD_64=" #$(if (target-64bit?)
                                                                "ON"
                                                                "OFF"))
                             "-DSELF_CONTAINED=OFF"
                             "-DWITH_PLUGIN_REDDIT=OFF"
                             "-DCHECK_UPDATES=OFF"
                             "-DPLATFORM_INSTALLER=OFF"
                             "-DUSE_DEVICE_TREZOR=ON"
                             "-DDONATE_BEG=OFF"
                             "-DWITH_SCANNER=ON")))
    (home-page "https://featherwallet.org")
    (synopsis "A free Monero Desktop wallet")
    (description "Feather is a free, open-source, small Monero wallet. It is written in C++ with the Qt framework. It supports Tor routing.")
    (license license:bsd-3)))