Skip to content

spago build for voidlinux #686

@waynevanson

Description

@waynevanson

Hi Guys,

I've been trying to create a pre built binary for void linux as part of the xbps system.
This means that users using voidlinux or the X Binary Package System (XBPS) don't need to install stack or GHC, because it's all been done by the host (cloud) in advance.

It's critical that these binaries are compiled from source by the host so it can be run on all available architectures without any issues.

When building using the recommended settings by the voidlinux community (build_style=haskell-stack), I get the message below:

basement > /tmp/stack-48a6ffdab601d322/basement-0.0.8/Basement/Block/Base.hs:398:9: error:
basement >     Not in scope: ‘fail’
basement >    Perhaps you meant ‘Data.List.tail’ (imported from Data.List)
basement >     |
basement > 398 |         arr@(Block arrBa) <- makeTrampoline
basement >     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
basement >
basement > /tmp/stack-48a6ffdab601d322/basement-0.0.8/Basement/Block/Base.hs:481:9: error:
basement >     Not in scope: ‘fail’
basement >     Perhaps you meant ‘Data.List.tail’ (imported from Data.List)
basement >     |
basement > 481 |         b@(Block ba) <- unsafeFreeze pinnedMb
basement >     |  

From what I've read, this happens because RebindingSyntax is declared in the file somewhere, therefore NoImplicitPrelude applies.

I can get this building on my machine with stack install and some dependencies, but not using the required setup.

I don't use haskell, so everything I know so far is solely off building purescript and spago from source via npm and creating this template. Do you have any recommendations?

Here is the template file I'm working on: https://github.com/waynevanson/void-packages/tree/package/spago_dev/srcpkgs/spago

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions