[Nix-dev] SVN commit: nix - r34268 - nixpkgs/trunk/pkgs/applications/misc/xmobar

Andres Loeh ksnix at andres-loeh.de
Sat Jun 2 20:02:39 CEST 2012


> That was a new expression, of course based on cabal2nix's output.
>
> But with both these expressions, enabling these flags leads to
> additional dependencies (possibly on non-haskell packages).
> It seems xmobar already contains with_xft, which depends on X11Xft.
> How will cabal2nix (regeneration) figure those out?

You can set flag choices in cabal2nix. Look at the Cabal2Nix.Flags
module. So it'd be nice if whenever you make a Haskell package change
that requires a change to Cabal2Nix, you make the change and send a
pull request.

A long time ago, I also started adding proper flag support to
cabal2nix, but I never finished it.

Cheers,
  Andres


More information about the nix-dev mailing list