<ocharles>
Argh, doctest has stopped working in my haskell.nix nix-shell :( Weirdly 'cabal configure --write-ghc-environment-files=always' doesn't include the main package database, which I think might be the problem
<ocharles>
Yet even more weirdly... cabal build is fine
<ocharles>
Dunno if anyone has any ideas. Doctest is failing because there's no -package-db set, which would be cabal-doctests responsibility
<ocharles>
Ok, jamming `"$NIX_GHC_LIBDIR/package.conf.gd"` in seems to work. Dunno why this was working fine before...
<michaelpj>
`--write-ghc-environment-files=always` <- why would you do this :o
<michaelpj>
generally cabal-doctest is a monstrosity and I'm not sure how it owrks
<ocharles>
I don't want to do that
<ocharles>
I was just grasping for a solution
<ocharles>
The fix is to use $NIX_GHC_LIBDIR, but for some reason this was working earlier but now exploded
acarrico has joined #haskell.nix
<ptival[m]>
michaelpj: is this created by haskell.nix? (I believe so, but you can probably confirm)
<ptival[m]>
The file '/nix/store/af1akj680l9vbjpc2yv56bn14dcawifj-ghc-shell-for-packages-ghc-8.10.3-env/bin/ghc' specified the interpreter '/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/bash -e', which is not an executable command.
<ptival[m]>
Failed to execute process '/nix/store/af1akj680l9vbjpc2yv56bn14dcawifj-ghc-shell-for-packages-ghc-8.10.3-env/bin/ghc'. Reason:
<michaelpj>
looks plausible
<michaelpj>
still seems super weird
<michaelpj>
ptival: can you `readlink -f` that GHC executable it's complaining about?
<michaelpj>
or `cat` it
<michaelpj>
AFAICT we just use `makeWrapper`, so I'm not sure how this could happen