Open infinisil opened 6 months ago
Had a chat today with @Dmills27, who's interested in contributing. I took some notes to break down this task:
by-name-overlay.nix
be synced with the tool
by-name-overlay.nix
into nixpkgs-check-by-nameupdate-pinned-tool.sh
should be updated to also fetch the Nix file from the release.config.json
(given as a CLI arg) and change behavior depending on itby-name-overlay.nix
read a config.json
and change behavior depending on{
"shard_length": 2
}
{
options.shard_length = lib.mkOption {
type = nullOr int;
# default = 2;
}
}
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/ci-will-soon-enforce-pkgs-by-name-for-new-packages/38098/8
+1! Here is another by-name package set: https://github.com/NixOS/nixpkgs/pull/344716
We want to use the
pkgs/by-name
convention for other package sets, e.g. https://github.com/NixOS/nixpkgs/pull/299347.Here's a rough idea how this could look like:
Package set config
Define some Nix config file to determine which package sets exist:
Read the packages in Nix
Create a Nix file to automatically call all of them like the current
by-name-overlay.nix
:For each package set declared, define it by importing
by-name-sets.nix
, likeCheck the packages with the tool
Adjust this tool to read a
by-name-sets-config.nix
file for determining what it needs to check and how.