diff --git a/pkgs/applications/openorienteering-mapper/default.nix b/pkgs/applications/openorienteering-mapper/default.nix

index 043fb48ddd10691b02824fb8aac3aa99908f49f6..8174eda814419d9276997e7d6a27166a82ee13cd 100644

--- a/pkgs/applications/openorienteering-mapper/default.nix

+++ b/pkgs/applications/openorienteering-mapper/default.nix

@@ -10,6 +10,7 @@ , qtbase

, qttools

, qtlocation

, qtsensors

+, qttranslations

, doxygen

, cups

, wrapQtAppsHook

@@ -21,6 +22,11 @@ stdenv.mkDerivation rec {

pname = "OpenOrienteering-Mapper";

version = lib.substring 0 7 src.rev;

src = sources.mapper;

buildInputs = [

 gdal

@@ -37,6 +43,11 @@ cups

];

nativeBuildInputs = [ cmake wrapQtAppsHook ninja ];

cmakeFlags = [

 # Building the manual and bundling licenses fails

diff --git a/pkgs/applications/openorienteering-mapper/fix-qttranslations-path.diff b/pkgs/applications/openorienteering-mapper/fix-qttranslations-path.diff

new file mode 100644

index 0000000000000000000000000000000000000000..06c465a8fb338ea9395583a26df8878006e33dd9

--- /dev/null

+++ b/pkgs/applications/openorienteering-mapper/fix-qttranslations-path.diff

@@ -0,0 +1,13 @@

+diff --git i/src/util/translation_util.cpp w/src/util/translation_util.cpp

+index da03d216..c1f12751 100644

+--- i/src/util/translation_util.cpp

++++ w/src/util/translation_util.cpp

+@@ -103,7 +103,7 @@ TranslationUtil::TranslationUtil(const QString& code, QString translation_file)

+- if (!qt_translator.load(translation_name, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))

++ if (!qt_translator.load(translation_name, QLatin1String("@qttranslations@/translations")))

Proxy Information
Original URL
gemini://git.sikmir.ru/nur-packages/commits/cc060d15cd46302516021f6e32e0f72a4348847e.patch
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
135.722215 milliseconds
Gemini-to-HTML Time
1.555188 milliseconds

This content has been proxied by September (3851b).