(define-module (komodo) #:use-module (cpprestsdk) #:use-module (gnu packages) #:use-module (gnu packages boost) #:use-module (gnu packages calendar) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages game-development) #:use-module (gnu packages logging) #:use-module (gnu packages pretty-print) #:use-module (gnu packages qt) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (guix build utils) #:use-module (guix build-system cmake) #:use-module (guix build-system qt) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) (define-public libsodium-komodo (package (inherit libsodium) (build-system cmake-build-system) (arguments (list #:phases #~ (modify-phases %standard-phases (add-after 'unpack 'add-cmakelists (lambda _ (copy-recursively #+ (local-file "komodo-libsodium-cmakelists.txt") "CMakeLists.txt") (copy-recursively #+ (local-file "komodo-libsodium-sodiumconfig.cmake.in") "sodiumConfig.cmake.in")))))))) (define-public komodo-wallet (let ((build-path-expected "../build/_deps/expected-src") (version "0.7.0-beta")) (package (name "komodo-wallet") (version version) (source (origin (uri (git-reference (url "https://github.com/KomodoPlatform/komodo-wallet-desktop") (commit version))) (method git-fetch) (hash (content-hash "148fxnhsvqpgfc6jmj7qzz5504k3yqvn1jxqkqdxqmk0ch0abpd7")))) (build-system qt-build-system) (arguments (list #:phases #~ (modify-phases %standard-phases (add-after 'unpack 'delete-vcpkg (lambda _ (substitute* "CMakeLists.txt" (("include\\(vcpkg_prerequisites\\)") (string-append "\nfile(MAKE_DIRECTORY \"" #+ build-path-expected "\")\n" "file(COPY " #+ (origin (uri (git-reference (url "https://github.com/TartanLlama/expected") (commit "v1.1.0") (recursive? #t))) (method git-fetch) (hash (content-hash "17akrv80h0n4cfmxwvlvbb8ycqza7y3qqygjyphv95rrabqm9r02")) (file-name (git-file-name "libexpected" "1.1.0")) (patches (search-patches "libexpected-use-provided-catch2.patch"))) "/ " " DESTINATION " #+ build-path-expected " FILES_MATCHING PATTERN \"*\"" " FOLLOW_SYMLINK_CHAIN)\n")))))) #:configure-flags #~ (list "-Wno-dev" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON"))) (native-inputs (list boost cpprestsdk date doctest entt fmt git libsodium-komodo nlohmann-json openssl qtcharts qtdeclarative-5 qttools-5 qtsvg-5 qtwebengine-5 range-v3 spdlog zlib)) (synopsis "Komodo Wallet Desktop GUI") (description (string-append "Komodo Wallet is a secure wallet and non-custodial " "decentralized exchange rolled into one application. Store " "your coind, trade peer-to-peer with minimal fees and never " "give up control over your digital assets.")) (license license:gpl2) (home-page "https://atomicdex.io/"))))