[Nix-dev] darwin haskellPackages.gtk

Eelco Dolstra e.dolstra at tudelft.nl
Fri Jan 20 11:09:42 CET 2012


Hi,

On 20/01/12 01:02, Patrick Wheeler wrote:

>     ++ (if stdenv.isDarwin then stdenv.lib.optionals cupsSupport [
> cups ] else []);

You can write this a bit cleaner as:

  stdenv.lib.optional (cupsSupport && !stdenv.isDarwin) cups

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list