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
+3 -3
View File
@@ -24,13 +24,13 @@ stdenvNoCC.mkDerivation rec {
touch $out/lib/lib
'';
meta = with lib; {
meta = {
description = ''
Development headers and linker scripts for TI MSP430 microcontrollers
'';
homepage = "https://www.ti.com/tool/msp430-gcc-opensource";
license = licenses.bsd3;
license = lib.licenses.bsd3;
platforms = [ "msp430-none" ];
maintainers = with maintainers; [ aerialx ];
maintainers = with lib.maintainers; [ aerialx ];
};
}
+4 -4
View File
@@ -60,12 +60,12 @@ stdenv.mkDerivation rec {
makeFlags = [ "UNAME_S=$(unameS)" ] ++ lib.optional (!enableReadline) "WITHOUT_READLINE=1";
unameS = lib.optionalString stdenv.hostPlatform.isDarwin "Darwin";
meta = with lib; {
meta = {
description = "Free programmer, debugger, and gdb proxy for MSP430 MCUs";
mainProgram = "mspdebug";
homepage = "https://dlbeer.co.nz/mspdebug/";
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ aerialx ];
license = lib.licenses.gpl2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ aerialx ];
};
}
@@ -34,12 +34,12 @@ stdenv.mkDerivation {
install -Dm0644 -t $out/include Inc/*.h
'';
meta = with lib; {
meta = {
description = "Unfree binary release of the TI MSP430 FET debug driver";
homepage = "https://www.ti.com/tool/MSPDS";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ aerialx ];
license = lib.licenses.unfree;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [ aerialx ];
};
}
@@ -60,11 +60,11 @@ stdenv.mkDerivation {
]
++ lib.optional stdenv.hostPlatform.isLinux libusb1;
meta = with lib; {
meta = {
description = "TI MSP430 FET debug driver";
homepage = "https://www.ti.com/tool/MSPDS";
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ aerialx ];
license = lib.licenses.bsd3;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [ aerialx ];
};
}
+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