Author: eelco
Date: 2010-07-08 12:55:18 +0000 (Thu, 08 Jul 2010)
New Revision: 22528

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22528&view=rev

Modified:
   nixos/trunk/modules/config/system-path.nix

Log:
* Call update-mime-database.


Changes:

Modified: nixos/trunk/modules/config/system-path.nix
===================================================================
--- nixos/trunk/modules/config/system-path.nix  2010-07-08 12:55:03 UTC (rev 
22527)
+++ nixos/trunk/modules/config/system-path.nix  2010-07-08 12:55:18 UTC (rev 
22528)
@@ -91,14 +91,20 @@
         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
+            '';
         };
+        
       };
 
     };

_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to