Unable to work around broken Haskell dependencies

I’ve been spinning my wheels for days trying to get a working version of the Tensorflow Haskell libraries in my project. There seem to be a couple of issues. The libraries have bitrotted a little, but thankfully there’s a fork. The version currently in nixpkgs is also broken due to the libtensorflow dependency not building since the end of last year. I figured I could substitute tensorflow-bin from pythonPackages in an override (although I’m not sure this will do what I expect), but I’ve not been able to get Nix to use the fork to build the Haskell dependencies. I’ve tried various combinations of Nix and Haskell tooling, but I keep winding up out of my depth. I got closest with using shellFor, which seemed to accept the libtensorflow override, but it seemed to just keep using the outdated Hackage source in spite of trying various override methods I read about here, on the wiki etc.

At this point I’m not too bothered about what tooling is used, so long as there’s some sort of reproducibility so that I can come back to the project down the line and not be wrestling with tooling again.