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
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/ocaml4.05.0-yojson/versions.
These checks were done:
- built on NixOS
- ran `/nix/store/k3c6sbqahg7xbrraipzbbbvkrncfbb78-ocaml4.05.0-yojson-1.4.1/bin/ydump --help` got 0 exit code
- ran `/nix/store/k3c6sbqahg7xbrraipzbbbvkrncfbb78-ocaml4.05.0-yojson-1.4.1/bin/ydump --help` and found version 1.4.1
- found 1.4.1 with grep in /nix/store/k3c6sbqahg7xbrraipzbbbvkrncfbb78-ocaml4.05.0-yojson-1.4.1
- directory tree listing: https://gist.github.com/45ad3b6379841d4750efc7dcfe6b602f
adds myself as a maintainer
adds assertions to have evaluation errors rather than build errors
moves opam out of ocamlPackages, as it does not provide a library