1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

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:
worldofpeace 2019-02-08 19:26:54 -05:00
parent ec076f77cd
commit 69be72a64a
4 changed files with 8 additions and 8 deletions

View file

@ -49,10 +49,6 @@ stdenv.mkDerivation rec {
patchShebangs meson_post_install.py patchShebangs meson_post_install.py
''; '';
postInstall = ''
rm $out/share/applications/mimeinfo.cache
'';
meta = { meta = {
homepage = https://fontmanager.github.io/; homepage = https://fontmanager.github.io/;
description = "Simple font management for GTK+ desktop environments"; description = "Simple font management for GTK+ desktop environments";

View file

@ -46,10 +46,6 @@ in stdenv.mkDerivation rec {
"-Dsystemdunitdir=lib/systemd/system" "-Dsystemdunitdir=lib/systemd/system"
]; ];
postInstall = ''
rm $out/share/applications/mimeinfo.cache
'';
passthru = { passthru = {
updateScript = gnome3.updateScript { updateScript = gnome3.updateScript {
packageName = pname; packageName = pname;

View file

@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib libintl ]; buildInputs = [ glib libintl ];
setupHook = ./setup-hook.sh;
meta = { meta = {
homepage = http://www.freedesktop.org/wiki/Software/desktop-file-utils; homepage = http://www.freedesktop.org/wiki/Software/desktop-file-utils;
description = "Command line utilities for working with .desktop files"; description = "Command line utilities for working with .desktop files";

View file

@ -0,0 +1,6 @@
# Remove mimeinfo cache
mimeinfoPreFixupPhase() {
rm -f $out/share/applications/mimeinfo.cache
}
preFixupPhases="$preFixupPhases mimeinfoPreFixupPhase"