Commit Graph

10 Commits

Author SHA1 Message Date
Janne Heß
fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
Silvan Mosberger
f7ea336cb2 workflows/check-by-name.yml: Switch to new separate repo
The nixpkgs-check-by-name tooling is [being moved](https://github.com/NixOS/nixpkgs/issues/286559#issuecomment-2000466124)
to a [separate repo](https://github.com/NixOS/nixpkgs-check-by-name).

This commit updates Nixpkgs CI to use it instead of the tree inside
Nixpkgs

No changes have been made to the tooling locally since it was moved:
- [Exported history](55bf02190e/pkgs/test/nixpkgs-check-by-name)
- [Imported history](d579e1821d/)
2024-03-26 21:24:48 +01:00
Silvan Mosberger
8032bb6173 pkgs/by-name: recommendations for multi-versioned packages
Over the past weeks, we've seen one oversight with the new
enforcement of `pkgs/by-name` for new packages.

This documents the problem and the recommendation for resolving it.
2024-03-01 02:58:04 +01:00
Silvan Mosberger
57afdc545b tests.nixpkgs-check-by-name: Enforce pkgs/by-name for new packages 2024-01-10 19:29:26 +01:00
Silvan Mosberger
92238ac52d tests.nixpkgs-check-by-name: Create script to run locally
Due to the check soon depending on the base branch (see `--base`),
the CI check can't reasonably share all code with a local check.
We can still make a script to run it locally, just not sharing all code.
2023-12-20 17:38:03 +01:00
Silvan Mosberger
6f2be7c095 pkgs/by-name: Mention possibility of avoiding alternate callPackage's
This is preferred over using the category hierarchy

Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
2023-12-06 23:29:27 +01:00
Samuel Tardieu
41acc25766 by-name: make the way of adding packages clearer 2023-10-09 19:12:29 +02:00
Silvan Mosberger
e27e30204b pkgs/by-name: Add manual migration guidelines
Motivated from seeing people starting to migrate packages manually when
it shouldn't be necessary or done differently.
2023-09-12 00:18:24 +02:00
Silvan Mosberger
488840d203 pkgs/by-name: Fix minor mistake in README 2023-09-06 19:29:43 +02:00
Silvan Mosberger
f6467c3574 pkgs/by-name: Introduce
This introduces the `pkgs/by-name` directory as proposed by RFC 140.
Included are:
- The implementation to add packages defined in that directory to the
  top-level package scope
- Contributer documentation on how to add packages to it
- A GitHub Actions workflow to check the structure of it on all PRs
2023-09-05 16:10:50 +02:00