1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

* 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 = ''
The packages you want in the boot environment.
'';
apply = list: pkgs.buildEnv {
name = "system-path";
paths = list;
inherit (cfg) pathsToLink;
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
'';
};
};
};