scarf-sh / scarf

An environment manager and development tool powered by Nomia.
https://scarf.sh
Apache License 2.0
159 stars 9 forks source link

Working nix build #12

Closed dysinger closed 4 years ago

dysinger commented 4 years ago

Problem:

In order to easily build JavaScript packages with Nix, we need some local files generated with node2nix present. This is because the files generated with node2nix expect to access package.json from a relative path. We also override the attributes for Nix so when we build locally we pick up the local source directory (not a release.)

We also need default.nix and shell.nix present to reduce typing when we build or enter the Nix shell.

Solution:

Of course, add these files so everything works nicely.