Skip to content

Make nix build work and enable using output in other nix derivations #133

Open
@niteria

Description

@niteria

It would be really nice to be able to use the output of this project in another nix derivation, so you could combine it with a backend and package it as a NixOS module.

I gave it a shot here:
https://github.com/niteria/purescript-halogen-realworld/tree/mkSpagoDerivation

Both nix build and nix develop work fine. Maybe it can be a good starting point for anyone wanting to do something similar.

The tricky part was the FFI - I had to use node2nix to get that working properly.

I’m not opening a PR because I basically replaced your flake.nix with the default one from https://github.com/jeslie0/mkSpagoDerivation/tree/main. Since you’re the author of https://github.com/thomashoneyman/purescript-overlay, you probably have a cleaner way to do this.

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