This is a skeleton for building PureScript projects with Nix.
psc-package
, you must use the default package set
or create a custom set if you want to override package versions. With Nix, you can add packages from
arbitrary sources and override existing packages at will.Improve the crap used to get shared builds.
Currently, this symlinks the output files of all dependencies to trick
psc
into not rebuilding those source files. Instead, psc
should
have a mechanism for using precompiled packages, like GHC does. It
may make sense to strive for a pscWithPackages
mechanism.
Figure out how to get local incremental builds for development.
When I'm using Nix with Haskell, I
make it possible
to build the code with cabal or stack for the sake of incremental
builds during development. This is important because fully
rebuilding the project takes a long time by comparison. This
improvement goes hand-in-hand with psci
support, which this
currently does not have.