[Haskell-cafe] Cabal flag default based on external program

Sebastian Wiesner lunaryorn at gmail.com
Mon Apr 14 16:19:21 UTC 2014


Hello,

I have a cabal package with some optional flags.  The “reasonable”
default for these flags depends on the target system, specifically on
the result of some external program.

Is there a way to dynamically set the default value of a Cabal flag
based on the result of an external program in my .cabal file?

Greetings,
Sebastian Wiesner


More information about the Haskell-Cafe mailing list