New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmonad: add support for v0.17.0 #2522
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/use-latest-version-of-xmonad-0-17-0/16191/13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Where does xmonad save its file when it recompiles the program now?
The symlink might have to be changed here:
home-manager/modules/services/window-managers/xmonad.nix
Lines 165 to 174 in 08e2d2a
home.file.".xmonad/xmonad.hs".source = cfg.config; | |
home.file.".xmonad/xmonad-${pkgs.hostPlatform.system}" = { | |
source = xmonadBin; | |
onChange = '' | |
# Attempt to restart xmonad if X is running. | |
if [[ -v DISPLAY ]]; then | |
${config.xsession.windowManager.command} --restart | |
fi | |
''; | |
}; |
It moved from The snippet you linked is just about where home-manager links the output of this, so it doesn't require any changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change xmonad to use XDG (available since 0.17) then we would need to symlink the compiled binary to XDG_CACHE_HOME,
see:
Ahhh. I think I understand what you mean. The symlink should now be something like
for xmonad 0.17. I do not know Nix that well so what would be the idiomatic way to make this conditional predicated on the version of xmonad? EDIT: Fixed symlink path. |
Can we merge this as is and fix the XDG path after 0.17.0 is the default version? |
@berbiche Oh, I see, you are proposing a bigger change where we transition to using XDG. As is, the patch currently works because the module explicitly sets I agree with what @mentalblock said: it's probably best to wait until 0.17.0 is the default version to incorporate this larger change. |
Alright 👍 |
Description
Starting from
~v0.17.0,
xmonad moved the location of its recompile output binary. This change
accommodates that. We might want to drop support for v0.15.0 at some point,
when it hits stackage LTS making
haskellPackages.xmonad
resolve to v0.17.0(currently, it does not, although there is a separate
haskellPackages.xmonad_0_17_0
).Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.