Use latest version of Xmonad (0.17.0)?

I don’t use home-manager, so I simply edited my NixOS config like so:

    # XMonad
    windowManager.xmonad = {
      enable = true;
      enableContribAndExtras = true;
      extraPackages = haskellPackages: [
        haskellPackages.xmonad_0_17_0
        haskellPackages.xmonad-contrib_0_17_0
        haskellPackages.xmonad-extras_0_17_0
      ];
    };

and unfortunately I got a similar error. Without the _0_17_0, everything works just fine. I would expect the changes I made to work, so I think there’s a problem. I see that someone just posted a workaround on Xmonad is out of date · Issue #145730 · NixOS/nixpkgs · GitHub, but I haven’t tried it yet.

Preprocessing library for xmonad-extras-0.17.0..
Using Parsec parser
Configuring xmonad-contrib-0.17.0...
CallStack (from HasCallStack):
  $, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:1024:20 in Cabal-3.2.1.0:Distribution.Simple.Configure
  configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:477:12 in Cabal-3.2.1.0:Distribution.Simple.Configure
  configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:625:20 in Cabal-3.2.1.0:Distribution.Simple
  confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:65:5 in Cabal-3.2.1.0:Distribution.Simple.UserHooks
  configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:180:19 in Cabal-3.2.1.0:Distribution.Simple
  defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:116:27 in Cabal-3.2.1.0:Distribution.Simple
  defaultMain, called at Setup.lhs:3:10 in main:Main
Setup: Encountered missing or private dependencies:
xmonad >=0.16.99999 && <0.18

error: builder for '/nix/store/n0fy67liark5i3gfps1ws7qfn5wabjf6-xmonad-contrib-0.17.0.drv' failed with exit code 1
error (ignored): error: cannot unlink '/tmp/nix-build-xmonad-extras-0.17.0.drv-0': Directory not empty
error: 1 dependencies of derivation '/nix/store/y22g17g7gyf6ar6gj258vbf6fzbwh5fh-ghc-8.10.7-with-packages.drv' failed to build
error: 1 dependencies of derivation '/nix/store/39v6f7hgnixpqgk2vv1z718rdng8m70g-xmonad-with-packages-8.10.7.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wdcq0v7iw70gz6z137lpny4rbhv89w9y-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/85gh1m8q5c0ymyc5697s5pramay22hij-xsession.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3nzrvlvga65fd8qwf612sj6b63zp8mfp-nixos-system-wombat11k-21.11pre332033.715f6341195.drv' failed to build
1 Like