[Nix-dev] Getting cabal2nix to add a cabal flag

Peter Jones mlists at pmade.com
Thu May 28 23:52:36 CEST 2015


I'm experimenting with different ways of building Haskell projects using
Nix.  I like the idea of using cabal2nix so I don't have to write the
nix files by hand and keep them in sync with my cabal file.  However, on
my personal projects, I like to have a `maintainer` cabal flag that
turns on `-Werror`.

I'd like to use cabal2nix together with nix-build in a way that my
package is configured with `-fmaintainer`.  Is there a way to do this?

Thanks!

-- 
Peter Jones, Founder, Devalot.com
Defending the honor of good code



More information about the nix-dev mailing list