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 ];
--subst-var-by qttranslations ${qttranslations}
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")))
load(qt_translator, translation_name);
application/octet-stream
This content has been proxied by September (3851b).