Go to file
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
doc * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
maintainers * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
pkgs Add: Handle a way to factor conditions. 2008-11-23 00:19:18 +00:00
COPYING * Applying an MIT-style license to Nixpkgs. 2006-04-25 16:50:34 +00:00
default.nix * For convenience, provide a top-level Nix expression that simply 2007-04-26 14:32:57 +00:00
STABLE * Move stuff. 2005-02-21 16:05:33 +00:00
VERSION * Quick start section. 2008-06-17 14:19:59 +00:00