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:
co-authored by
Wolfgang Walther
parent
8bbc115374
commit
567e8dfd8e
@@ -54,10 +54,10 @@ buildPerlModule rec {
|
||||
# Ensure compatibility with GCC-11 (compilation fails if -Wno-format-security)
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://metacpan.org/dist/Bio-BigFile";
|
||||
description = "Manipulate Jim Kent's BigWig and BigBed index files for genomic features";
|
||||
license = licenses.artistic2;
|
||||
maintainers = with maintainers; [ apraga ];
|
||||
license = lib.licenses.artistic2;
|
||||
maintainers = with lib.maintainers; [ apraga ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ buildPerlPackage rec {
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Lightweight application for searching and streaming videos from YouTube";
|
||||
homepage = "https://github.com/trizen/youtube-viewer";
|
||||
license = with licenses; [ artistic2 ];
|
||||
maintainers = with maintainers; [ woffs ];
|
||||
license = with lib.licenses; [ artistic2 ];
|
||||
maintainers = with lib.maintainers; [ woffs ];
|
||||
mainProgram = "youtube-viewer";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ buildPerlPackage {
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Database toolkit";
|
||||
longDescription = ''
|
||||
You can use Maatkit to prove replication is working correctly, fix
|
||||
@@ -42,7 +42,7 @@ buildPerlPackage {
|
||||
In addition to MySQL, there is support for PostgreSQL, Memcached, and a
|
||||
growing variety of other databases and technologies.
|
||||
'';
|
||||
license = licenses.gpl2Plus;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
homepage = "https://code.google.com/archive/p/maatkit/";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -68,12 +68,12 @@ buildPerlPackage rec {
|
||||
updateScript = gitUpdater { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Perl module for stripping bits of non-deterministic information";
|
||||
mainProgram = "strip-nondeterminism";
|
||||
homepage = "https://reproducible-builds.org/";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [
|
||||
pSub
|
||||
artturin
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user