mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
Merge pull request #64305 from rnhmjoj/monero
monero-gui: only exclude darwin in meta.platforms
This commit is contained in:
commit
f964c1468e
|
@ -48,7 +48,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./move-log-file.patch
|
./move-log-file.patch
|
||||||
./move-translations-dir.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -83,10 +82,6 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
cp ${desktopItem}/share/applications/* $out/share/applications
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
||||||
|
|
||||||
# install translations
|
|
||||||
mkdir -p $out/share/translations
|
|
||||||
cp translations/*.qm $out/share/translations/
|
|
||||||
|
|
||||||
# install icons
|
# install icons
|
||||||
for n in 16 24 32 48 64 96 128 256; do
|
for n in 16 24 32 48 64 96 128 256; do
|
||||||
size=$n"x"$n
|
size=$n"x"$n
|
||||||
|
@ -97,10 +92,11 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Private, secure, untraceable currency";
|
description = "Private, secure, untraceable currency";
|
||||||
homepage = https://getmonero.org/;
|
homepage = https://getmonero.org/;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ rnhmjoj ];
|
badPlatforms = platforms.darwin;
|
||||||
|
maintainers = with maintainers; [ rnhmjoj ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,18 +13,3 @@ index a51568d..5a9f683 100644
|
||||||
parser.addOption(logPathOption);
|
parser.addOption(logPathOption);
|
||||||
parser.addHelpOption();
|
parser.addHelpOption();
|
||||||
parser.process(app);
|
parser.process(app);
|
||||||
diff --git a/Logger.cpp b/Logger.cpp
|
|
||||||
index 6b1daba..c357762 100644
|
|
||||||
--- a/Logger.cpp
|
|
||||||
+++ b/Logger.cpp
|
|
||||||
@@ -28,8 +28,8 @@ static const QString defaultLogName = "monero-wallet-gui.log";
|
|
||||||
static const QString appFolder = "Library/Logs";
|
|
||||||
#else // linux + bsd
|
|
||||||
//HomeLocation = "~"
|
|
||||||
- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
|
|
||||||
- static const QString appFolder = ".bitmonero";
|
|
||||||
+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
|
|
||||||
+ static const QString appFolder = "bitmonero";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/TranslationManager.cpp b/TranslationManager.cpp
|
|
||||||
index e7fc52a..83534cc 100644
|
|
||||||
--- a/TranslationManager.cpp
|
|
||||||
+++ b/TranslationManager.cpp
|
|
||||||
@@ -25,7 +25,7 @@ bool TranslationManager::setLanguage(const QString &language)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
- QString dir = qApp->applicationDirPath() + "/translations";
|
|
||||||
+ QString dir = qApp->applicationDirPath() + "/../share/translations";
|
|
||||||
QString filename = "monero-core_" + language;
|
|
||||||
|
|
||||||
qDebug("%s: loading translation file '%s' from '%s'",
|
|
Loading…
Reference in a new issue