Files
nixpkgs/pkgs
Nicolas Pierron 249a3a314f Add: Handle a way to factor conditions.
mkIf config.foo.enable {
  require = [ .. ];

  environment = {
    // infer the else part.
    extraPackages = [pkgs.foo];
    etc = mkThenElse {
      thenPart = { .. };
      elsePart = { .. };
    };
  };
}

Fix: UniqFlattenAttr compare configuration without the "require" attribute.

svn path=/nixpkgs/trunk/; revision=13372
2008-11-23 00:19:18 +00:00
..
2008-11-19 21:46:19 +00:00
2008-11-07 13:05:05 +00:00
2008-11-22 16:57:16 +00:00
2008-11-22 16:57:16 +00:00