You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v2-install does not apply flags (-fXXX) to the build.
To Reproduce
Steps to reproduce the behavior:
$ cabal v2-install -fwith_xft xmobar
...
$ ~/.cabal/bin/xmobar
Warning: Xmobar must be built with the with_xft flag to support font 'xft:Oxygen Mono:size=10,DejaVu Sans Mono:size=10.' Falling back on default.
Is there any known workaround to this issue? I would like to install an application that refuses to build on my machine without some flags. I guess I could clone down the application and modify the .cabal.local-file, but is there an easier way?
Edit: Yes, there was, at least for my issue! The answer was --constraint="packageName +flagName" as the documentation for --flags says.
I guess -f should at least warn that you need to use --constraints instead if you try to apply it to cabal v2-install
Activity
anka-213 commentedon Feb 1, 2026
Is there any known workaround to this issue? I would like to install an application that refuses to build on my machine without some flags. I guess I could clone down the application and modify the .cabal.local-file, but is there an easier way?
Edit: Yes, there was, at least for my issue! The answer was
--constraint="packageName +flagName"as the documentation for--flagssays.I guess
-fshould at least warn that you need to use--constraintsinstead if you try to apply it tocabal v2-install