1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/tools/misc/desktop-file-utils/setup-hook.sh
worldofpeace 69be72a64a desktop-files-utils: add setupHook to remove mimeinfo.cache
Post-Installation scripts are running `update-desktop-database -q`
creating these files which obviously results in a lot of collisions.

Much better solution than eventually noticing their existence and
removing them in postInstall.
2019-02-09 01:29:53 +00:00

7 lines
157 B
Bash

# Remove mimeinfo cache
mimeinfoPreFixupPhase() {
rm -f $out/share/applications/mimeinfo.cache
}
preFixupPhases="$preFixupPhases mimeinfoPreFixupPhase"