summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorMel Bourgeois <mason.bourgeois@gmail.com>2022-11-12 19:36:51 -0600
committerMel Bourgeois <mason.bourgeois@gmail.com>2023-01-19 19:05:18 -0600
commit31f7acfbb5e1db8055d5931e9ffa4112bb49a64c (patch)
treec78796efb98652d429ae7185f031e1154a60b3d4 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentbdaf0a39feaee37badbc73390babab1f8692e4c9 (diff)
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.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions