Skip to content

Commit

Permalink
Merge pull request #57921 from rnhmjoj/monero
Browse files Browse the repository at this point in the history
monero-gui: fix missing qml imports
  • Loading branch information
infinisil authored Mar 27, 2019
2 parents 6af3176 + bbefa95 commit a921f8a
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions pkgs/applications/altcoins/monero-gui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@
, makeWrapper, makeDesktopItem
, qtbase, qmake, qtmultimedia, qttools
, qtgraphicaleffects, qtdeclarative
, qtlocation, qtquickcontrols2, qtwebchannel
, qtwebengine, qtx11extras, qtxmlpatterns
, qtlocation, qtquickcontrols, qtquickcontrols2
, qtwebchannel, qtwebengine, qtx11extras, qtxmlpatterns
, monero, unbound, readline, boost, libunwind
, libsodium, pcsclite, zeromq, cppzmq, pkgconfig
, hidapi
}:

with stdenv.lib;

let
qmlPath = qmlLib: "${qmlLib}/${qtbase.qtQmlPrefix}";

qml2ImportPath = concatMapStringsSep ":" qmlPath [
qtbase.bin qtmultimedia.bin qtgraphicaleffects
qtdeclarative.bin qtlocation.bin
qtquickcontrols qtquickcontrols2.bin
qtwebchannel.bin qtwebengine.bin qtxmlpatterns
];

in

stdenv.mkDerivation rec {
name = "monero-gui-${version}";
version = "0.14.0.0";
Expand All @@ -26,7 +38,8 @@ stdenv.mkDerivation rec {

buildInputs = [
qtbase qtmultimedia qtgraphicaleffects
qtdeclarative qtlocation qtquickcontrols2
qtdeclarative qtlocation
qtquickcontrols qtquickcontrols2
qtwebchannel qtwebengine qtx11extras
qtxmlpatterns monero unbound readline
boost libunwind libsodium pcsclite zeromq
Expand Down Expand Up @@ -81,6 +94,11 @@ stdenv.mkDerivation rec {
cp $src/images/appicons/$size.png \
$out/share/icons/hicolor/$size/apps/monero.png
done;
# wrap runtime dependencies
wrapProgram $out/bin/monero-wallet-gui \
--set QML2_IMPORT_PATH "${qml2ImportPath}" \
--set QT_PLUGIN_PATH "${qtbase.bin}/${qtbase.qtPluginPrefix}"
'';

meta = {
Expand Down

0 comments on commit a921f8a

Please sign in to comment.