diff options
Diffstat (limited to 'packages/komodo/komodo.scm')
-rw-r--r-- | packages/komodo/komodo.scm | 55 |
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)) |