mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +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
|
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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
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