summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-04-03 13:19:02 +0200
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-04-03 13:19:02 +0200
commit14025f0ee1b00a93182fef127eb8be774b217ef4 (patch)
tree4339669f4aadef77a2a17ae0ad28d3960e2daf74 /packages
parenta80e5a27ef4d796487c5b0f22862e045de1612e4 (diff)
komodo: complete the package implementation: now the program itself needs to be fixed
Diffstat (limited to 'packages')
-rw-r--r--packages/komodo/komodo.scm55
1 files changed, 52 insertions, 3 deletions
diff --git a/packages/komodo/komodo.scm b/packages/komodo/komodo.scm
index 9baa469..671602c 100644
--- a/packages/komodo/komodo.scm
+++ b/packages/komodo/komodo.scm
@@ -141,7 +141,53 @@
(define komodo-wallet-origin
(origin (uri komodo-wallet-git-reference)
(method git-fetch)
- (hash komodo-wallet-content-hash)))
+ (hash komodo-wallet-content-hash)
+ (modules '((guix build utils)))
+ (snippet '(begin (substitute* "cmake/antara.cmake"
+ (("if \\(LINUX\\)")
+ "if (NOT LINUX)"))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("if \\(EXISTS \\$\\{LINUX_DEPLOY_PATH\\}\\)")
+ "if (NOT EXISTS ${LINUX_DEPLOY_PATH})"))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/libsmime3.so\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/libssl3.so\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/nss/libfreebl3.chk\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/nss/libfreebl3.so\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/nss/libnssdbm3.chk\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/nss/libnssdbm3.so\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.chk\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("\"/usr/lib/x86_64-linux-gnu/nss/\"")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("file\\(COPY \\$\\{current_lib\\} DESTINATION \\$\\{PROJECT_LIB_PATH\\}\\)")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("file\\(RENAME \\$\\{CMAKE_SOURCE_DIR\\}\\/\\$\\{DEX_PROJECT_NAME\\}-\\$\\{VERSION_ID\\}-x86_64.AppImage \\$\\{CMAKE_SOURCE_DIR\\}\\/\\$\\{DEX_PROJECT_NAME\\}-linux-\\$\\{VERSION_ID\\}-x86_64.AppImage\\)")
+ ""))
+ (substitute* "cmake/install/linux/linux_post_install.cmake"
+ (("file\\(COPY \\$\\{CMAKE_SOURCE_DIR\\}\\/\\$\\{DEX_PROJECT_NAME\\}-linux-\\$\\{VERSION_ID\\}-x86_64.AppImage DESTINATION \\$\\{TARGET_APP_PATH\\}\\)")
+ ""))
+ (substitute* "cmake/install/linux/dex_install.cmake"
+ (("if \\(LINUX\\)")
+ "if (NOT LINUX)"))))))
(define mm2-origin
(origin (uri "https://sdk.devbuilds.komodo.earth/main/mm2_b0fd99e-linux-x86-64.zip")
@@ -289,13 +335,16 @@
#~(modify-phases %standard-phases
#+modify-cmake-configuration
(replace 'build
- (lambda _ (invoke "ninja" "install")))))
+ (lambda _ (invoke "ninja" "install")))
+ ;;(delete 'install)
+ ))
;;; ABSTRACTION LAYER 0
(define komodo-wallet-arguments
(list #:phases komodo-wallet-phases
- #:configure-flags komodo-wallet-configure-flags))
+ #:configure-flags komodo-wallet-configure-flags
+ #:tests? #f))
(define komodo-wallet-description
(string-concatenate komodo-wallet-description-lines))