Skip to content

Commit

Permalink
xmonad: add support for v0.17.0 (nix-community#2522)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickHu authored and adomixaszvers committed Feb 5, 2022
1 parent 2860d7e commit 5b5f5ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/services/window-managers/xmonad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ in {
# The resulting binary name depends on the arch and os
# https://github.com/xmonad/xmonad/blob/56b0f850bc35200ec23f05c079eca8b0a1f90305/src/XMonad/Core.hs#L565-L572
mv "$XMONAD_DATA_DIR/xmonad-${pkgs.hostPlatform.system}" $out/bin/
if [ -f "$XMONAD_DATA_DIR/xmonad-${pkgs.stdenv.hostPlatform.system}" ]; then
# xmonad 0.15.0
mv "$XMONAD_DATA_DIR/xmonad-${pkgs.stdenv.hostPlatform.system}" $out/bin/
else
# xmonad 0.17.0 (https://github.com/xmonad/xmonad/commit/9813e218b034009b0b6d09a70650178980e05d54)
mv "$XMONAD_CACHE_DIR/xmonad-${pkgs.stdenv.hostPlatform.system}" $out/bin/
fi
''
}/bin/xmonad-${pkgs.hostPlatform.system}";

Expand Down

0 comments on commit 5b5f5ba

Please sign in to comment.