This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I'm on
NixOS
and so I try my best to keep project-specific build tools out of my PATH. There are other developers like me who would like to start with this template, but would have to either embrace some system side-effects (installingrollup
,npm
, etc. to the global PATH) or implement something like the solution in this PR.You should be able to confirm this behavior with
nix
package manager installation or by using https://github.com/DavHau/nix-portablenix build .
The build output will be in
./result
. In my case this looks likeNote that
nix develop
(to spin up a development shell) will currently spit out some warnings since I've chosen to useNODE_PATH
(instead ofln -s
thenode_modules
directory in/nix/store
) androllup
doesn't seem to use this environment variable. I've opened rollup/rollup#4271 to address this. If this repository's maintainers would like to wait until that issue is resolved (and possibly until a related PR is merged, there) then we can keep this open until then.