(define-module (komodo) #:use-module (cmake) ;; #:use-module (gnu packages commencement) #:use-module (gnu packages compression) ;; #:use-module (gnu packages cpp) #:use-module (gnu packages curl) #:use-module (gnu packages ncurses) #:use-module (gnu packages ninja) ;; #:use-module (guix build utils) ;; #:use-module (guix build-system copy) #: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) ;; #:use-module (nonguix build-system binary) #:use-module (vcpkg) ) (define-public komodo-wallet (let ((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) (recursive? #t))) (method git-fetch) (hash (content-hash "148fxnhsvqpgfc6jmj7qzz5504k3yqvn1jxqkqdxqmk0ch0abpd7")))) (build-system cmake-build-system) (arguments `(#:configure-flags '("-DCMAKE_USE_SYSTEM_CPPDAP=OFF") #:phases #~ (modify-phases %standard-phases (add-after 'unpack 'unpack-vcpkg-tool (lambda _ (invoke "mkdir" "ci_tools_atomic_dex/vcpkg-repo/downloads") (copy-recursively #+ (origin (uri (string-append "https://github.com/microsoft/vcpkg-tool/archive/" "2023-11-16" ".tar.gz")) (method url-fetch) (hash (content-hash "0gy04mlc8s2560zm9ngjx7p3rbrckk9zxb2g1z0hidkbhgv49lcy"))) "ci_tools_atomic_dex/vcpkg-repo/downloads/2023-11-16.tar.gz"))) (add-after 'unpack-vcpkg-tool 'patch-vcpkg-tool (lambda _ (invoke "chmod" "+w" "ci_tools_atomic_dex/vcpkg-repo/downloads/2023-11-16.tar.gz") (invoke "gunzip" "ci_tools_atomic_dex/vcpkg-repo/downloads/2023-11-16.tar.gz") (invoke "tar" "-xf" "ci_tools_atomic_dex/vcpkg-repo/downloads/2023-11-16.tar" "-C" "ci_tools_atomic_dex/vcpkg-repo/downloads" "vcpkg-tool-2023-11-16/cmake/Findfmt.cmake" "vcpkg-tool-2023-11-16/cmake/FindCMakeRC.cmake") (invoke "tar" "--delete" "-f" "ci_tools_atomic_dex/vcpkg-repo/downloads/2023-11-16.tar" "vcpkg-tool-2023-11-16/cmake/Findfmt.cmake" "vcpkg-tool-2023-11-16/cmake/FindCMakeRC.cmake") (substitute* "ci_tools_atomic_dex/vcpkg-repo/downloads/vcpkg-tool-2023-11-16/cmake/Findfmt.cmake" (("the fmt library\" OFF") "the fmt library\" ON")) (substitute* "ci_tools_atomic_dex/vcpkg-repo/downloads/vcpkg-tool-2023-11-16/cmake/FindCMakeRC.cmake" (("resource compiler\" OFF") "resource compiler\" ON")) (invoke "tar" "-rf" "ci_tools_atomic_dex/vcpkg-repo/downloads/2023-11-16.tar" "ci_tools_atomic_dex/vcpkg-repo/downloads/vcpkg-tool-2023-11-16/cmake/Findfmt.cmake" "ci_tools_atomic_dex/vcpkg-repo/downloads/vcpkg-tool-2023-11-16/cmake/FindCMakeRC.cmake") (invoke "gzip" "ci_tools_atomic_dex/vcpkg-repo/downloads/2023-11-16.tar"))) (add-after 'unpack 'prepare-vcpkg-bootstrap (lambda _ (invoke "chmod" "+x" "ci_tools_atomic_dex/vcpkg-repo/scripts/bootstrap.sh") (substitute* "ci_tools_atomic_dex/vcpkg-repo/scripts/bootstrap.sh" (("vcpkgDownloadTool=\"ON\"") "vcpkgDownloadTool=\"OFF\"") (("\\$actualHash") "$expectedHash")))) (add-before 'configure 'bootstrap-vcpkg (lambda _ (invoke "ci_tools_atomic_dex/vcpkg-repo/bootstrap-vcpkg.sh" "--disableMetrics")))))) (native-inputs (list cmake curl ncurses ninja unzip vcpkg-tool-cmrc vcpkg-tool-fmt zip)) (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/"))))