input-output-hk/stack2nix

stack2nix: <stdout>: commitBuffer: invalid argument (invalid character)

Closed this issue · 2 comments

Hi, I'm having this issue running stack2nix on a project here: https://gitlab.com/zenhaskell/rio-etc-template/-/jobs/127902000

I've played around with locales but as far as I can tell nothing's wrong.

We should probably add how to run stack2nix purely to the README.

I use:

nix-shell -I "nixpkgs=$nixpkgs" -p wget glibcLocales --run \
    "LANG=en_US.utf8 NIX_PATH=nixpkgs=$nixpkgs $(nix-build -A stack2nix --no-out-link)/bin/stack2nix --platform x86_64-linux --hackage-snapshot 2018-11-20T19:00:00Z . > stack2nix.nix"
nh2 commented

Commit cb05818 looks like it would have solved this.