mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 02:46:28 +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:
parent
ec076f77cd
commit
69be72a64a
|
@ -49,10 +49,6 @@ stdenv.mkDerivation rec {
|
|||
patchShebangs meson_post_install.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm $out/share/applications/mimeinfo.cache
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://fontmanager.github.io/;
|
||||
description = "Simple font management for GTK+ desktop environments";
|
||||
|
|
|
@ -46,10 +46,6 @@ in stdenv.mkDerivation rec {
|
|||
"-Dsystemdunitdir=lib/systemd/system"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
rm $out/share/applications/mimeinfo.cache
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
|
|
|
@ -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"
|
Loading…
Reference in a new issue