mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
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:
committed by
Wolfgang Walther
parent
8bbc115374
commit
567e8dfd8e
@@ -107,12 +107,12 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Next generation of fcitx";
|
||||
homepage = "https://github.com/fcitx/fcitx5";
|
||||
license = licenses.lgpl21Plus;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
mainProgram = "fcitx5";
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ stdenv.mkDerivation rec {
|
||||
anthy
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Anthy Wrapper for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-anthy";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ elnudev ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ elnudev ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,11 +31,11 @@ stdenv.mkDerivation rec {
|
||||
libchewing
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Chewing wrapper for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-chewing";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ xrelkd ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ xrelkd ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -70,15 +70,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Addons related to Chinese, including IME previous bundled inside fcitx4";
|
||||
mainProgram = "scel2org5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-chinese-addons";
|
||||
license = with licenses; [
|
||||
license = with lib.licenses; [
|
||||
gpl2Plus
|
||||
lgpl21Plus
|
||||
];
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -85,12 +85,12 @@ stdenv.mkDerivation rec {
|
||||
]
|
||||
);
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Configuration Tool for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-configtool";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "fcitx5-config-qt";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -75,11 +75,11 @@ stdenv.mkDerivation rec {
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Fcitx5 gtk im module and glib based dbus client library";
|
||||
homepage = "https://github.com/fcitx/fcitx5-gtk";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,11 +36,11 @@ stdenv.mkDerivation rec {
|
||||
inherit (nixosTests) fcitx5;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Hangul wrapper for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-hangul";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ xrelkd ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ xrelkd ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,11 +34,11 @@ stdenv.mkDerivation rec {
|
||||
extraLdLibraries = [ lua ];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Lua support for Fcitx 5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-lua";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ stdenv.mkDerivation rec {
|
||||
inherit (nixosTests) fcitx5;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "m17n support for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-m17n";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ Technical27 ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ Technical27 ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -51,14 +51,14 @@ stdenv.mkDerivation rec {
|
||||
wayland
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Fcitx5 Qt Library";
|
||||
homepage = "https://github.com/fcitx/fcitx5-qt";
|
||||
license = with licenses; [
|
||||
license = with lib.licenses; [
|
||||
lgpl21Plus
|
||||
bsd3
|
||||
];
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,11 +55,11 @@ stdenv.mkDerivation rec {
|
||||
cp -r "${rimeDataDrv}/share/rime-data/." $out/share/rime-data/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "RIME support for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-rime";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Input method engine for Fcitx5, which uses libskk as its backend";
|
||||
homepage = "https://github.com/fcitx/fcitx5-skk";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ wattmto ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ wattmto ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ stdenv.mkDerivation rec {
|
||||
boost
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Extra table for Fcitx, including Boshiamy, Zhengma, Cangjie, and Quick";
|
||||
homepage = "https://github.com/fcitx/fcitx5-table-extra";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ stdenv.mkDerivation rec {
|
||||
boost
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Some other tables for Fcitx";
|
||||
homepage = "https://github.com/fcitx/fcitx5-table-other";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ poscat ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ poscat ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Unikey engine support for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-unikey";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ berberman ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ berberman ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,12 +48,12 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "IBus interface to the anthy input method";
|
||||
homepage = "https://github.com/fujiwarat/ibus-anthy";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,12 +38,12 @@ stdenv.mkDerivation rec {
|
||||
"PREFIX=${placeholder "out"}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "Vietnamese IME for IBus";
|
||||
homepage = "https://github.com/BambooEngine/ibus-bamboo";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -53,13 +53,13 @@ stdenv.mkDerivation rec {
|
||||
))
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "Ibus Hangul engine";
|
||||
mainProgram = "ibus-setup-hangul";
|
||||
homepage = "https://github.com/libhangul/ibus-hangul";
|
||||
license = licenses.gpl2Plus;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.linux;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,12 +25,12 @@ stdenv.mkDerivation rec {
|
||||
libthai
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
homepage = "https://linux.thai.net/projects/ibus-libthai";
|
||||
description = "Thai input method engine for IBus";
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.unix;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,12 +46,12 @@ stdenv.mkDerivation rec {
|
||||
"--with-gtk=3.0"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "m17n engine for ibus";
|
||||
homepage = "https://github.com/ibus/ibus-m17n";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,12 +54,12 @@ stdenv.mkDerivation rec {
|
||||
cp -r "${rimeDataDrv}/share/rime-data/." $out/share/rime-data/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "Rime input method engine for IBus";
|
||||
homepage = "https://rime.im/";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ pmy ];
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ pmy ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,13 +30,13 @@ stdenv.mkDerivation rec {
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "Various table-based input methods for IBus";
|
||||
homepage = "https://github.com/moebiuscurve/ibus-table-others";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [
|
||||
license = lib.licenses.gpl3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [
|
||||
mudri
|
||||
McSinyx
|
||||
];
|
||||
|
||||
@@ -68,13 +68,13 @@ stdenv.mkDerivation rec {
|
||||
--replace "docbook2man" "docbook2man --sgml"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "IBus framework for table-based input methods";
|
||||
mainProgram = "ibus-table-createdb";
|
||||
homepage = "https://github.com/kaio/ibus-table/wiki";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mudri ];
|
||||
license = lib.licenses.lgpl21;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ mudri ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -51,13 +51,13 @@ stdenv.mkDerivation rec {
|
||||
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${m17n_lib}/lib")
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://mike-fabian.github.io/ibus-typing-booster/";
|
||||
license = licenses.gpl3Plus;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
description = "Completion input method for faster typing";
|
||||
mainProgram = "emoji-picker";
|
||||
maintainers = [ ];
|
||||
platforms = platforms.linux;
|
||||
platforms = lib.platforms.linux;
|
||||
isIbusEngine = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,12 +25,12 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://gitlab.com/interception/linux/plugins/caps2esc";
|
||||
description = "Transforming the most useless key ever into the most useful one";
|
||||
mainProgram = "caps2esc";
|
||||
license = licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.linux;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,12 +37,12 @@ stdenv.mkDerivation rec {
|
||||
"PREFIX="
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://gitlab.com/interception/linux/plugins/dual-function-keys";
|
||||
description = "Tap for one key, hold for another";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ svend ];
|
||||
platforms = platforms.linux;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ svend ];
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "dual-function-keys";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -73,18 +73,18 @@ let
|
||||
];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
inherit description license;
|
||||
longDescription = ''
|
||||
This package provides a kana-to-kanji conversion dictionary for the
|
||||
SKK Japanese input method.
|
||||
'';
|
||||
homepage = "https://github.com/skk-dev/dict";
|
||||
maintainers = with maintainers; [
|
||||
maintainers = with lib.maintainers; [
|
||||
yuriaisaka
|
||||
midchildan
|
||||
];
|
||||
platforms = platforms.all;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user