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
..
applications hackish fix to build cdrtools again 2008-11-19 21:45:43 +00:00
build-support * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
configs/etc
data * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
desktops * Use mirror://kde. (Contributed by Bas van Dijk.) 2008-11-14 14:15:46 +00:00
development ghc-6.10 binary 2008-11-19 21:46:19 +00:00
games meta.function -> passthru.function, not killing other contents of passthru 2008-11-04 21:24:10 +00:00
lib Add: Handle a way to factor conditions. 2008-11-23 00:19:18 +00:00
misc * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
os-specific/linux * Revert to version 76, 77 gives strange hangs. 2008-11-19 17:21:49 +00:00
servers * Samba 3.2.4. 2008-11-07 13:05:05 +00:00
shells zsh update to 4.3.9 2008-11-22 16:57:16 +00:00
stdenv * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
test Add a new way to handle option sets. 2008-08-05 17:16:35 +00:00
tools (last) fcron fix for now because the service works as expected 2008-11-22 16:57:31 +00:00
top-level zsh update to 4.3.9 2008-11-22 16:57:16 +00:00