nixos: improve mime DB cache generation (close #11785)

This commit is contained in:
michael bishop 2015-12-17 08:10:16 -04:00 committed by Vladimír Čunát
parent 07eb0ad76c
commit 301c74bc16

View File

@ -128,7 +128,7 @@ in
# !!! Hacky, should modularise.
postBuild =
''
if [ -x $out/bin/update-mime-database -a -w $out/share/mime/packages ]; then
if [ -x $out/bin/update-mime-database -a -w $out/share/mime ]; then
XDG_DATA_DIRS=$out/share $out/bin/update-mime-database -V $out/share/mime > /dev/null
fi