* Call update-mime-database.

svn path=/nixos/trunk/; revision=22528
This commit is contained in:
Eelco Dolstra 2010-07-08 12:55:18 +00:00
parent b076121430
commit 7123115d6f

View File

@ -91,14 +91,20 @@ let
description = '' description = ''
The packages you want in the boot environment. The packages you want in the boot environment.
''; '';
apply = list: pkgs.buildEnv { apply = list: pkgs.buildEnv {
name = "system-path"; name = "system-path";
paths = list; paths = list;
inherit (cfg) pathsToLink; inherit (cfg) pathsToLink;
ignoreCollisions = true; ignoreCollisions = true;
postBuild =
''
if [ -x $out/bin/update-mime-database -a -d $out/share/mime/packages ]; then
$out/bin/update-mime-database -V $out/share/mime
fi
'';
}; };
}; };
}; };