FS#67584 - [xmobar] Patch package to dynamically compile config
Attached to Project:
Community Packages
Opened by William Taranto (lostwanderer) - Friday, 14 August 2020, 19:57 GMT
Last edited by Levente Polyak (anthraxx) - Saturday, 25 February 2023, 01:53 GMT
Opened by William Taranto (lostwanderer) - Friday, 14 August 2020, 19:57 GMT
Last edited by Levente Polyak (anthraxx) - Saturday, 25 February 2023, 01:53 GMT
|
Details
If
* the xmobar config is written in pure haskell source * imports Xmobar then * xmobar fails to compile the config because * it doesn't pass the -dynamic flag to ghc. This bug prevents making custom plugin as described in https://xmobar.org/#plugins. Possible Solution: In the prepare section of the PKGBUILD, we can patch the source code to dynamically compile the config similar to how xmonad's PKGBUILD works. I think this follows k.i.s.s. the best and also stays similar to xmonad, a related package. Steps to reproduce: * install xmobar via pacman * download attached sample config * run xmobar ./xmobar.hs (this must be in the directory xmobar.hs is located) Additional info: * xmobar version: 0.35-23 * ghc: 8.10.1 * error: Error detected while loading xmobar configuration file: ./xmobar.hs xmobar.hs:19:1 error: Could not find module 'Xmobar' There are files missing in the 'xmobar-0.35' package, try running 'ghc-pkg check'. Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 19 | import Xmobar | ^^^^^^^^^^^^^ Please check file for errors. |
This task depends upon
Closed by Levente Polyak (anthraxx)
Saturday, 25 February 2023, 01:53 GMT
Reason for closing: Fixed
Additional comments about closing: 0.46-1
Saturday, 25 February 2023, 01:53 GMT
Reason for closing: Fixed
Additional comments about closing: 0.46-1
Comment by Jason Fan (jfjfjf) -
Sunday, 05 December 2021, 22:04 GMT
A workaround can be found for now, with
https://aur.archlinux.org/packages/xmobar-dynamic.