This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
According to https://repology.org/repository/nix_unstable/problems, we have a
lot of packages that have http links that redirect to https as their homepage.
This commit updates all these packages to use the https links as their
homepage.
The following script was used to make these updates:
```
curl https://repology.org/api/v1/repository/nix_unstable/problems \
| jq '.[] | .problem' -r \
| rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \
| sort | uniq > script.sed
find -name '*.nix' | xargs -P4 -- sed -f script.sed -i
```
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/springlobby/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/i6g7iand22k99ry0hjda1gs71amk9q11-springlobby-0.264/bin/springlobby had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/i6g7iand22k99ry0hjda1gs71amk9q11-springlobby-0.264/bin/.springlobby-wrapped had a zero exit code or showed the expected version
- 0 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 0.264 with grep in /nix/store/i6g7iand22k99ry0hjda1gs71amk9q11-springlobby-0.264
- directory tree listing: https://gist.github.com/4d077ab682c9643337f22bf2bd75f51c
- du listing: https://gist.github.com/f215b8788c2ea5ebb286f3dddc34fdf9
include_next fatal error: stdlib.h: No such file or directory
The fix is the same as here and works:
https://github.com/NixOS/nixpkgs/pull/28748
It seams to have to do with header paths.