Haskell environment on haskellings does not run (Couldn’t find an appropriate stack package DB!)

Couldn’t find an appropriate stack package DB!

I keep on getting this issue ^ (when trying to run stack run haskellings)
here is my stack.yaml:

resolver: lts-18.28
system-ghc: true
install-ghc: false
nix:
  enable: true
  shell-file: shell.nix

and my shell:

# shell.nix
let
  pkgs = import (fetchTarball {
    url = "https://github.com/NixOS/nixpkgs/archive/nixpkgs-22.11-darwin.tar.gz";
    sha256 = "1xi53rlslcprybsvrmipm69ypd3g3hr7wkxvzc73ag8296yclyll";
  }) {};
in
pkgs.mkShell {
  buildInputs = [
    pkgs.stack
    pkgs.gnumake
    pkgs.zlib
    pkgs.ncurses
    pkgs.libffi
    pkgs.nix

    pkgs.haskell.compiler.ghc8107
    pkgs.haskellPackages.cabal-install

    pkgs.elmPackages.elm
    pkgs.elmPackages.elm-format
    pkgs.elmPackages.elm-test
  ];

  shellHook = ''
    export STACK_YAML=stack.yaml
    export STACK_IN_NIX_SHELL=1
    export STACK_IN_NIX_EXTRA_ARGS="--system-ghc"
  '';
}```

Maybe this has some hints: Unable to call `haskellings` on windows · Issue #46 · MondayMorningHaskell/haskellings · GitHub

Looks like this is just a lot of at this point ancient software stacked on top of another, I’m not really sure how stack worked at that point. Maybe you can get the haskellings’ maintainers to help you.

I got it working somehow, i repaired my nix store and rebuilt it, and now it runs.