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

2015-05-28 Thread Peter Jones
Peter Simons  writes:
> Hi Peter,
>
>  > 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?
>
> call cabal2nix with -fmaintainer. I'm citing from the --help output:
>
> -f FLAG   --flag=FLAG Cabal flag (may be specified multiple times)
>

Well, I feel like a fool.  Thanks!

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

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-05-28 Thread Peter Simons
Hi Peter,

 > 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?

call cabal2nix with -fmaintainer. I'm citing from the --help output:

-f FLAG   --flag=FLAG Cabal flag (may be specified multiple times)

Best regards,
Peter

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-05-28 Thread Peter Jones
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

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev