Profpatsch / yarn2nix

Build and deploy node packages with nix from yarn.lock files.
MIT License
85 stars 21 forks source link

Bundler for creating one nix file that can be checked in #52

Open Profpatsch opened 3 years ago

Profpatsch commented 3 years ago

Ideally, the workflow for packaging a medium-complex application is just

yarn2nix bundle ./path/to/checkout

or even just

yarn2nix bundle github:owner/repo

and one nix file is created that contains everything for building & vendoring it into your repository (or into nixpkgs).

sternenseemann commented 3 years ago

Also I think it'd be a good requirement for the bundled nix expression that overrideAttrs works for most purposes without much hassle to change name, version, meta set, ….