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.
This commit is contained in:
@@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ glib libintl ];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = {
|
||||
homepage = http://www.freedesktop.org/wiki/Software/desktop-file-utils;
|
||||
description = "Command line utilities for working with .desktop files";
|
||||
|
||||
6
pkgs/tools/misc/desktop-file-utils/setup-hook.sh
Normal file
6
pkgs/tools/misc/desktop-file-utils/setup-hook.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
# Remove mimeinfo cache
|
||||
mimeinfoPreFixupPhase() {
|
||||
rm -f $out/share/applications/mimeinfo.cache
|
||||
}
|
||||
|
||||
preFixupPhases="$preFixupPhases mimeinfoPreFixupPhase"
|
||||
Reference in New Issue
Block a user