nixpkgs/pkgs/development/tools/yarn2nix-moretea/yarn2nix
Mel Bourgeois 31f7acfbb5
yarn2nix: add easy yarn & nodejs pkg overrides
Projects often require a specific major version of NodeJS, and sometimes
a specific yarn version. Since yarn2nix utilities are accessed from
nixpkgs now, there is no simple way to override versions of nodejs and
yarn without complex solutions like an overlay.

This adds `yarn` and `nodejs` as optional attribute arguments to
`mkYarnModules`, `mkYarnPackage`, and `mkYarnWorkspace`. They default to
the same versions that are currently being used, and the nodejs input to
yarn is overridden so that it will match if only `nodejs` is overridden
by the user.

These arguments will also cascade from `mkYarnWorkspace` ->
`mkYarnPackage` -> `mkYarnModules`, making per-package overrides very
simple.
2023-01-19 19:05:18 -06:00
..
bin yarn2nix: format code 2022-10-26 19:30:06 -05:00
internal yarn2nix: format code 2022-10-26 19:30:06 -05:00
lib yarn2nix: limit ssri parsing to supported algorithms 2022-10-30 17:31:10 -05:00
nix
.prettierignore yarn2nix: limit ssri parsing to supported algorithms 2022-10-30 17:31:10 -05:00
default.nix yarn2nix: add easy yarn & nodejs pkg overrides 2023-01-19 19:05:18 -06:00
LICENSE.txt
package.json yarn2nix: format code 2022-10-26 19:30:06 -05:00
yarn.lock
yarn.nix yarn2nix: limit ssri parsing to supported algorithms 2022-10-30 17:31:10 -05:00