diff options
-rw-r--r-- | gnu/packages/qt.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 5e83a6ad58..9c04db7c45 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -892,7 +892,15 @@ tst_qt_cmake_create.cpp" (substitute* "src/corelib/CMakeLists.txt" (("/bin/ls") - (search-input-file inputs "bin/ls"))))) + (search-input-file inputs "bin/ls"))) + + ;; Use shared-mime-info as the default MIME type database. + (substitute* "src/corelib/mimetypes/qmimedatabase.cpp" + (("return dirs;" all) + (string-append + "dirs.append(\"" + #$(this-package-input "shared-mime-info") "/share/mime" + "\");\n" all))))) (delete 'do-not-capture-python) ;move after patch-source-shebangs (add-after 'patch-source-shebangs 'do-not-capture-python (lambda _ @@ -1192,6 +1200,7 @@ tst_qt_cmake_create.cpp" libsm libxcb libxext + shared-mime-info xcb-util-cursor `(,zstd "lib")))) (native-search-paths |