This is a simple example project for setting up Purescript development environment using Nix. The basic tooling like Pulp, Purescript compiler and psc-package are downloaded from a pinned revision of nixpkgs. This allows us to use new Purescript compiler and things like that from the pinned revision while otherwise sticking with stable NixOS release.
In this example, the Purescript libraries are installed using psc-package and Nix is only used to install the basic tooling.
- git clone git://github.com/kaitanie/nix-purescript-example-project
- cd nix-purescript-example-project
- nix-shell
Purescript, psc-package, and such from the pinned nixpkgs version should now be available in the `nix-shell` environment and can be used normally.
The relevant issue is here: NixOS/nixpkgs#40406
Currently the workaround is to use `npm install -g pulp` and use that one instead of the nixpkgs version.