From e82dc77a6a3d4605226d0119c197430f489b64ed Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Wed, 11 Sep 2024 17:54:37 -0700 Subject: [PATCH] doc/hooks/desktop-file-utils: document hook (cherry picked from commit 9baf2743ad56503631b11d0a1e4adfae4f44a159) --- doc/hooks/desktop-file-utils.section.md | 5 +++++ doc/hooks/index.md | 1 + 2 files changed, 6 insertions(+) create mode 100644 doc/hooks/desktop-file-utils.section.md diff --git a/doc/hooks/desktop-file-utils.section.md b/doc/hooks/desktop-file-utils.section.md new file mode 100644 index 000000000000..41cc3cad0d0c --- /dev/null +++ b/doc/hooks/desktop-file-utils.section.md @@ -0,0 +1,5 @@ +# desktop-file-utils {#desktop-file-utils} + +This setup hook removes the MIME cache (located at `$out/share/applications/mimeinfo.cache`) in the `preFixupPhase`. + +This hook is necessary because `mimeinfo.cache` can be created when a package uses `desktop-file-utils`, resulting in collisions if multiple packages are installed that contain this file (as in [#48295](https://github.com/NixOS/nixpkgs/issues/48295)). diff --git a/doc/hooks/index.md b/doc/hooks/index.md index 1534ef85ccb9..bf9965bd681f 100644 --- a/doc/hooks/index.md +++ b/doc/hooks/index.md @@ -11,6 +11,7 @@ autopatchelf.section.md bmake.section.md breakpoint.section.md cmake.section.md +desktop-file-utils.section.md gdk-pixbuf.section.md ghc.section.md gnome.section.md