yaziPlugins: yazi-rs homepage population

Use the mkYaziPlugin to populate the homepage easier for all the bundled
plugins.
This commit is contained in:
Austin Horstman
2025-05-10 10:00:45 -05:00
parent 95fa8bd4f4
commit cc357fbf4a
17 changed files with 5 additions and 16 deletions
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Execute chmod on the selected files to change their mode";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
+5
View File
@@ -50,6 +50,11 @@ let
meta = meta // {
description = meta.description or "";
platforms = meta.platforms or lib.platforms.all;
homepage =
if (src ? owner && src.owner == "yazi-rs") then
"https://github.com/yazi-rs/plugins/tree/main/${pname}"
else
meta.homepage or null;
};
passthru = (args.passthru or { }) // {
updateScript = {
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Diff the selected file with the hovered file, create a living patch, and copy it to the clipboard";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Add a full border to Yazi to make it look fancier";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Show the status of Git file changes as linemode in the file list";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Switch the preview pane between hidden and shown";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with lsar";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with mactag";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
platforms = lib.platforms.darwin;
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with mime-ext";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with mount";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with no-status";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Pipe any shell command as a previewer";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with smart-enter";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with smart-filter";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with smart-filter";
homepage = "https://github.com/yazi-rs/plugins/tree/main/smart-paste.yazi";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with toggle-pane";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};
@@ -16,7 +16,6 @@ mkYaziPlugin {
meta = {
description = "Previewing archive contents with vcs-files";
homepage = "https://yazi-rs.github.io";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ khaneliman ];
};