
26 Jun
2021
26 Jun
'21
2:04 p.m.
Hi David,
I’m trying to make use of an environment variable in my cabal file: ${ENV_VAR}, but I don’t think its value is getting used correctly. Is this a known issue? Workaround?
I'd guess this was never implemented. A workaround would be running your cabal files through a preprocessor, as part of your workflow. I think the current effort to design and implement exact-print for cabal files and the implied overhaul of cabal files AST and handling will make this feature easier to implement: https://github.com/haskell/cabal/projects/9 There is also a not entirely unrelated effort to affect cabal behaviour via hooks: https://github.com/haskell/cabal/issues/7394 Contributions are very welcome. Best regards, Mikolaj