xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
584 stars 274 forks source link

Updated flake.nix for full compatibility. #615

Closed mikenrafter closed 2 years ago

mikenrafter commented 2 years ago

Description

For people using nix, the overlay provided does not work with ghcWithPackages & ghcWithHoogle.

This change fixes that.

Checklist

liskin commented 2 years ago

@mikenrafter The CI seems to be unhappy still:

Run nix develop -c cabal v2-build -O0 -j
warning: Git tree '/home/runner/work/xmonad-contrib/xmonad-contrib' is dirty
warning: creating lock file '/home/runner/work/xmonad-contrib/xmonad-contrib/flake.lock'
warning: Git tree '/home/runner/work/xmonad-contrib/xmonad-contrib' is dirty
error: infinite recursion encountered

       at /nix/store/00jky8q3q0awcgi5kiwzwvb8png1wya2-source/pkgs/stdenv/generic/make-derivation.nix:247:7:

          246|       depsHostHost                = lib.elemAt (lib.elemAt dependencies 1) 0;
          247|       buildInputs                 = lib.elemAt (lib.elemAt dependencies 1) 1;
             |       ^
          248|       depsTargetTarget            = lib.elemAt (lib.elemAt dependencies 2) 0;
(use '--show-trace' to show detailed location information)
mikenrafter commented 2 years ago

Yes, it appears as though I somehow placebo effected myself. I'll do further debugging and push my changes when I fix it.

mikenrafter commented 2 years ago

After further investigating, it turns out that ghcWithPackages, does in fact pull directly from haskellPackages. Meaning, this flake does work.

Don't you just love placebos?