NixOS/nixpkgs@03310df843 disabled flake support by default, so we now need to build a custom package and use it if the user wants to `use flake` successfully. This should fix #2087. (cherry picked from commit e0f2949c98)
e0f2949c98
PR #1297