`node-packages.nix` was regenerated after having run `generate-node-packages.sh`
in order to pick up dependencies for `elm-pages`. In addition, we add `elm`,
`elm-review`, and `elm-optimize-level-2` to the `PATH` for `elm-pages` since those
are needed at runtime.
A patch is also included to fix an issue where files are copied from the `nix-store`
as read-only (credit to @bcardiff for that fix). An upstream issue
https://github.com/dillonkearns/elm-pages/issues/305 has been opened to track this.
elm-format depends on elm-format-lib which failed to build with
hspec-tasty 1.1.7 and hspec-golden 0.2.0.0.
hspec-tasty 1.1.6 and hspec-golden 0.1.0.3 had been removed in
cd67b4fcbb.
hspec-tasty 1.1.6 in turn pulls in older dependencies for hspec,
hspec-core and hspec-discover.
Fixes#167533.
Fixes regression caused by
4c60ee3da1 (pull: #142915)
following patch of nodePackages using nodejs-14_x
2c3b3e69ad (pull: #149120)
- clenups and updates in generate-node-packages.sh
- specify nodejs version in default.nix
This makes elmPackages.* build with nodejs-14
which resolves the issue with npm installation failing
Extends the number of available tools for Elm language.
1. fix and move "elm-test"
Previously located in nodePackages.elm-test but broken (see binwrap info).
Now fixed and located in elmPackages.elm-test
2. add "elm-verify-examples"
Generate tests from documentation examples
3. add "elm-upgrade"
upgrade assistant using statical analysis
4. add "elm-analyse"
static analysis for elm code (linter)
5. move "elm-doc-preview"
originally located in nodePackages.elm-upgrade - moved for consistency
6. add "elmi-to-json"
transforms elmi files to json - used by other tools like elm-test and
elm-verify-examples
Node.js based dependencies are defined the same way as nodePackages
contaparts but are independent (has it's own packages.json)
patch-binwrap.nix is used to as a replacement for binwrap package
used by some nodejs dependencies that depends on Haskell binaries
(elm-test and elm-verify-examples).
BREAKING CHANGE
===============
elm-doc-preview (as well as broken elm-test) is now commented
in `node-packages-v10.json` and should be removed once new
nix-expressions for node10 are generated (out of scope of this PR)
There are still 2 outstanding elm related packages in nodePackages
1. elm-oracle - legacy package which is not compatible with elm 0.19
2. elm-live - should be moved in the future I think