1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
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
build-support
configs/etc
data
desktops
development
games
lib Add: Handle a way to factor conditions. 2008-11-23 00:19:18 +00:00
misc
os-specific/linux
servers
shells zsh update to 4.3.9 2008-11-22 16:57:16 +00:00
stdenv
test
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