gnu: monero-gui: Build with modular qt.
* gnu/packages/finance.scm (monero-gui)[inputs]: Remove qt, add qtbase, qtdeclarative, qtgraphicaleffects, qtquickcontrols. [native-inputs]: Add qttools. [arguments]: Add a custom phase to patch the absolute file-name of lrelease and lupdate. Add a custom phase to wrap the executable with QT environmental variables.
This commit is contained in:
parent
0c85d2c62d
commit
6915d20f05
|
@ -478,12 +478,16 @@ Monero command line client and daemon.")
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("doxygen" ,doxygen)
|
`(("doxygen" ,doxygen)
|
||||||
("graphviz" ,graphviz)
|
("graphviz" ,graphviz)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)
|
||||||
|
("qttools" ,qttools)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("boost" ,boost)
|
`(("boost" ,boost)
|
||||||
("libunwind" ,libunwind)
|
("libunwind" ,libunwind)
|
||||||
("openssl" ,openssl)
|
("openssl" ,openssl)
|
||||||
("qt" ,qt)
|
("qtbase" ,qtbase)
|
||||||
|
("qtdeclarative" ,qtdeclarative)
|
||||||
|
("qtgraphicaleffects" ,qtgraphicaleffects)
|
||||||
|
("qtquickcontrols" ,qtquickcontrols)
|
||||||
("readline" ,readline)
|
("readline" ,readline)
|
||||||
("unbound" ,unbound)))
|
("unbound" ,unbound)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
@ -518,6 +522,15 @@ Monero command line client and daemon.")
|
||||||
(string-append "\""(assoc-ref inputs "monero")
|
(string-append "\""(assoc-ref inputs "monero")
|
||||||
"/bin/monerod")))
|
"/bin/monerod")))
|
||||||
#t))
|
#t))
|
||||||
|
(add-after 'fix-monerod-path 'fix-qt-paths
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let* ((qttools (assoc-ref inputs "qttools"))
|
||||||
|
(lrelease (string-append qttools "/bin/lrelease"))
|
||||||
|
(lupdate (string-append qttools "/bin/lupdate")))
|
||||||
|
(substitute* "monero-wallet-gui.pro"
|
||||||
|
(("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") lrelease)
|
||||||
|
(("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate") lupdate))
|
||||||
|
#t)))
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "./build.sh")))
|
(invoke "./build.sh")))
|
||||||
|
@ -529,7 +542,23 @@ Monero command line client and daemon.")
|
||||||
#t))
|
#t))
|
||||||
(add-before 'install 'change-dir
|
(add-before 'install 'change-dir
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "build"))))))
|
(chdir "build")))
|
||||||
|
(add-after 'install 'wrap-executable
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(wrap-program (string-append out "/bin/monero-wallet-gui")
|
||||||
|
`("QT_PLUGIN_PATH" ":" prefix
|
||||||
|
,(map (lambda (label)
|
||||||
|
(string-append (assoc-ref inputs label)
|
||||||
|
"/lib/qt5/plugins"))
|
||||||
|
'("qtbase" "qtdeclarative")))
|
||||||
|
`("QML2_IMPORT_PATH" ":" prefix
|
||||||
|
,(map (lambda (label)
|
||||||
|
(string-append (assoc-ref inputs label)
|
||||||
|
"/lib/qt5/qml"))
|
||||||
|
'("qtdeclarative" "qtgraphicaleffects"
|
||||||
|
"qtquickcontrols"))))
|
||||||
|
#t))))))
|
||||||
(home-page "https://getmonero.org/")
|
(home-page "https://getmonero.org/")
|
||||||
(synopsis "Graphical user interface for the Monero currency")
|
(synopsis "Graphical user interface for the Monero currency")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue