From 7123115d6f1610b78b268d75566596edf95db580 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 8 Jul 2010 12:55:18 +0000 Subject: [PATCH] * Call update-mime-database. svn path=/nixos/trunk/; revision=22528 --- modules/config/system-path.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/config/system-path.nix b/modules/config/system-path.nix index 7e04af21997..03256aa9596 100644 --- a/modules/config/system-path.nix +++ b/modules/config/system-path.nix @@ -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 + ''; }; + }; };