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
@@ -144,15 +144,15 @@ stdenv.mkDerivation rec {
};
};
meta = with lib; {
meta = {
changelog = "https://www.sqlite.org/releaselog/${lib.replaceStrings [ "." ] [ "_" ] version}.html";
description = "Self-contained, serverless, zero-configuration, transactional SQL database engine";
downloadPage = "https://sqlite.org/download.html";
homepage = "https://www.sqlite.org/";
license = licenses.publicDomain;
license = lib.licenses.publicDomain;
mainProgram = "sqlite3";
maintainers = with maintainers; [ np ];
platforms = platforms.unix ++ platforms.windows;
maintainers = with lib.maintainers; [ np ];
platforms = lib.platforms.unix ++ lib.platforms.windows;
pkgConfigModules = [ "sqlite3" ];
};
}
+4 -4
View File
@@ -36,11 +36,11 @@ stdenv.mkDerivation {
install -D -t $out/bin sqlarfs
'';
meta = with lib; {
meta = {
homepage = "https://sqlite.org/sqlar";
description = "SQLite Archive utilities";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ dtzWill ];
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ dtzWill ];
};
}
+4 -4
View File
@@ -36,12 +36,12 @@ let
installPhase = "install -Dt $out/bin ${makeTarget}";
meta = with lib; {
meta = {
inherit description homepage mainProgram;
downloadPage = "http://sqlite.org/download.html";
license = licenses.publicDomain;
maintainers = with maintainers; [ johnazoidberg ];
platforms = platforms.unix;
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ johnazoidberg ];
platforms = lib.platforms.unix;
};
};
in