adept/full-fledged-hledger

shake errors from using nix installed stack?

Opened this issue · 3 comments

Hi,
Thanks for building this system and publishing it.
I am trying running export.sh for generating reports, but see the following error:

Error when running Shake build system:
* 2018-all.journal
* 2018-closing.journal
hledger: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)

I have installed stack using nix and my ~/.stack/config.yaml as the following:

ghc-build: nopie
nix:
  enable: true

Found a similar error here, but I am no haskeller so not sure what to make of it:
tweag/HaskellR#286

adept commented

Looks like it tried to run hledger, but it was not in your $PATH. Did you manage to get this resolved?

ah, interesting. haven't gotten to retrying but will try to this week.

Thanks for the advice. I was able to get it running by specifying the full path's to where hledger and other invoked binaries are. Since nixOS has its own prefixed installs for these binaries I can't call /usr/bin/awk or things like that.