Skip to content

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

Closed
@thautwarm

Description

@thautwarm

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 ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions