git.iko.soy/typeable/nixpkgs
on master help sign in
monero-gui: 0.12.0.0 -> 0.12.3.0
commitfd95d306095b664977285078a2169874c4766b1b authorrnhmjoj <rnhmjoj@inventati.org> dateTue 4 Sep 2018, 12:11 (8 years ago) parent90ab6c8
3 files changed+33−44
pkgs/applications/altcoins/monero-gui/default.nix+4−3 pkgs/applications/altcoins/monero-gui/move-log-file.patch+22−33 pkgs/applications/altcoins/monero-gui/move-translations-dir.patch+7−8
pkgs/applications/altcoins/monero-gui/default.nix+4−3
@@ -12,13 +12,13 @@ with stdenv.lib;
1212
1313stdenv.mkDerivation rec {
1414 name = "monero-gui-${version}";
15− version = "0.12.0.0";
15+ version = "0.12.3.0";
1616
1717 src = fetchFromGitHub {
1818 owner = "monero-project";
1919 repo = "monero-gui";
2020 rev = "v${version}";
21− sha256 = "1mg5ival8a2wdp14yib4wzqax4xyvd40zjy9anhszljds1439jhl";
21+ sha256 = "1ry0455cgirkc6n46qnlv5p49axjllil78xmx6469nbp3a2r3z7i";
2222 };
2323
2424 nativeBuildInputs = [ qmake pkgconfig ];
@@ -70,7 +70,8 @@ stdenv.mkDerivation rec {
7070 cp ${desktopItem}/share/applications/* $out/share/applications
7171
7272 # install translations
73− cp -r release/bin/translations $out/share/
73+ mkdir -p $out/share/translations
74+ cp translations/*.qm $out/share/translations/
7475
7576 # install icons
7677 for n in 16 24 32 48 64 96 128 256; do
pkgs/applications/altcoins/monero-gui/move-log-file.patch+22−33
@@ -1,38 +1,27 @@
11diff --git a/main.cpp b/main.cpp
2−index c03b160..a8ea263 100644
2+index 79223c0..e80b317 100644
33--- a/main.cpp
44+++ b/main.cpp
5−@@ -80,14 +80,16 @@ int main(int argc, char *argv[])
6− // qDebug() << "High DPI auto scaling - enabled";
7− //#endif
8−
9−- // Log settings
10−- Monero::Wallet::init(argv[0], "monero-wallet-gui");
11−-// qInstallMessageHandler(messageHandler);
12−-
13− MainApp app(argc, argv);
14−
15− qDebug() << "app startd";
16−
17−+ // Log settings
18−+ QString logfile =
19−+ QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
20−+ + "/monero-wallet-gui.log";
21−+ Monero::Wallet::init(argv[0], logfile.toUtf8().constData());
22−+
23− app.setApplicationName("monero-core");
24− app.setOrganizationDomain("getmonero.org");
25− app.setOrganizationName("monero-project");
26−diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
27−index 74649ce..fe1efc6 100644
28−--- a/src/libwalletqt/Wallet.cpp
29−+++ b/src/libwalletqt/Wallet.cpp
30−@@ -729,7 +729,7 @@ QString Wallet::getWalletLogPath() const
31− #ifdef Q_OS_MACOS
32− return QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs/" + filename;
33− #else
34−- return QCoreApplication::applicationDirPath() + "/" + filename;
35−+ return QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + filename;
5+@@ -115,6 +115,9 @@ int main(int argc, char *argv[])
6+ QCommandLineOption logPathOption(QStringList() << "l" << "log-file",
7+ QCoreApplication::translate("main", "Log to specified file"),
8+ QCoreApplication::translate("main", "file"));
9++ logPathOption.setDefaultValue(
10++ QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
11++ + "/monero-wallet-gui.log");
12+ parser.addOption(logPathOption);
13+ parser.addHelpOption();
14+ parser.process(app);
15+diff --git a/Logger.cpp b/Logger.cpp
16+index 660bafc..dae24d4 100644
17+--- a/Logger.cpp
18++++ b/Logger.cpp
19+@@ -15,7 +15,7 @@ static const QString default_name = "monero-wallet-gui.log";
20+ #elif defined(Q_OS_MAC)
21+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs";
22+ #else // linux + bsd
23+- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
24++ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
3625 #endif
37− }
26+
3827
pkgs/applications/altcoins/monero-gui/move-translations-dir.patch+7−8
@@ -1,14 +1,13 @@
11diff --git a/TranslationManager.cpp b/TranslationManager.cpp
2−index fa39d35..5a410f7 100644
2+index e7fc52a..83534cc 100644
33--- a/TranslationManager.cpp
44+++ b/TranslationManager.cpp
5−@@ -29,7 +29,7 @@ bool TranslationManager::setLanguage(const QString &language)
6− #ifdef Q_OS_MACX
7− QString dir = qApp->applicationDirPath() + "/../Resources/translations";
8− #else
5+@@ -25,7 +25,7 @@ bool TranslationManager::setLanguage(const QString &language)
6+ return true;
7+ }
8+
99- QString dir = qApp->applicationDirPath() + "/translations";
1010+ QString dir = qApp->applicationDirPath() + "/../share/translations";
11− #endif
12−
1311 QString filename = "monero-core_" + language;
14−
12+
13+ qDebug("%s: loading translation file '%s' from '%s'",