treewide: clean up 'meta = with' pattern

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>
This commit is contained in:
Ihar Hrachyshka
2025-12-10 18:09:49 +01:00
committed by Wolfgang Walther
co-authored by Wolfgang Walther
parent 8bbc115374
commit 567e8dfd8e
16759 changed files with 54499 additions and 54491 deletions
+4 -4
View File
@@ -35,10 +35,10 @@ rec {
pythonImportsCheck = [ "configargparse" ];
meta = with lib; {
meta = {
description = "Drop-in replacement for argparse";
homepage = "https://github.com/bw2/ConfigArgParse";
license = licenses.mit;
license = lib.licenses.mit;
};
};
six = python27.pkgs.buildPythonPackage rec {
@@ -69,10 +69,10 @@ rec {
doCheck = false;
meta = with lib; {
meta = {
description = "Backport of typing module to Python versions older than 3.5";
homepage = "https://docs.python.org/3/library/typing.html";
license = licenses.psfl;
license = lib.licenses.psfl;
};
};
}
+4 -4
View File
@@ -78,13 +78,13 @@ python27.pkgs.buildPythonApplication {
};
};
meta = with lib; {
meta = {
description = "Resolve external shell-script dependencies";
homepage = "https://github.com/abathur/resholve";
changelog = "https://github.com/abathur/resholve/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ abathur ];
platforms = platforms.all;
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ abathur ];
platforms = lib.platforms.all;
knownVulnerabilities = [
''
resholve depends on python27 (EOL). While it's safe to