Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building arbitrary stack project failed: stack2nix: <stdout>: commitBuffer: invalid argument (invalid character) #82

Closed
thautwarm opened this issue Feb 21, 2020 · 1 comment

Comments

@thautwarm
Copy link

I'm trying to build static executable from my stack project here.

It uses lts-13.26 so the this line shall not change:

compiler = "ghc865"; # matching stack.yaml

And my only change is this line, by filling cabalPackageName with purescript-python.

cabalPackageName = "example-project";

It seems due to this:

extra-deps:
- github: purescript/purescript
  commit: ed130c78b708ff55cf4a80b126a1bd3ba5d80eb9

I got genNixFile: No support for archive package locations, so I change it to

extra-deps:
- purescript-0.13.6

which is the version closest to their master branch.

Finally I got this error and cannot work it out after a while:

+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.6.5 /home/redy/+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.6.5 cabal://pushbullet-types-0.4.1.0
+ cabal2nix --subpath . --system x86_64-linux --compiler ghc-8.6.5 cabal://pusher-http-haskell-1.5.1.9
stack2nix: <stderr>: commitBuffer: invalid argument (invalid character)

This is strange, because this seems to be a solved issue: input-output-hk/stack2nix#150 .

I also tried adding export LC_ALL=en_US.UTF-8 before building.

Before each building I cleanup things and retry $(nix-build ...)

@nh2
Copy link
Owner

nh2 commented Jul 23, 2021

I believe this is fiixed with current stack2nix updated in PR #98, please re-open or ping me if you find it to happen still.

@nh2 nh2 closed this as completed Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants