about summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorMalo Bourgon <mbourgon@gmail.com>2022-05-06 13:50:19 -0700
committerMalo Bourgon <mbourgon@gmail.com>2022-05-14 11:30:15 -0700
commit31673e9aeea93605f4727408ac9701dcbb552f38 (patch)
tree8dbee0bb17a697a271a55374f1178261f669ab17 /doc/languages-frameworks
parent745739f280b049b2dc24d75a935b7fcb9ef6efb7 (diff)
nodePackages: make it easy to add meta.mainProgram to packages
This was accomplish by moving the current overrides overlay out of
./default.nix into to a seperate file ./overrides.nix, and composing
that overlay an overlay ,`mainProgramOverrides`, (defined in
./default.nix) which uses the contents of a new file ./main-programs.nix
to create overrides that add `meta.mainProgram` to packages.

The following changes were also made to existing overrides:
* `self` and `super` where changed to `final` and `prev` respectively
* Existing additions of `mainProgram` were moved to ./main-programs.nix
* References to `pkgs.lib` were changed to `lib`
* References to `pkgs.nodejs` were changed to `nodejs`
* References to `nodePackages` were changed  to `final`
* References to `pkgs.callPackage` were changed to `callPackage`

Finally `meta.mainProgram` was added to all packages that provide a
single executable whose name differs from the package's name, for
packages available on `{aarch64,x86_64}-darwin` and `x86_64-linux`.
Diffstat (limited to 'doc/languages-frameworks')
0 files changed, 0 insertions, 0 deletions