yaziPlugins.dupes: init at 0-unstable-2025-10-16 (#452876)

This commit is contained in:
Austin Horstman
2025-10-20 20:59:17 +00:00
committed by GitHub
2 changed files with 40 additions and 0 deletions
+6
View File
@@ -17570,6 +17570,12 @@
name = "Sean Gilligan";
keys = [ { fingerprint = "3B66 ACFA D10F 02AA B1D5  2CB1 8DD0 D81D 7D1F C61A"; } ];
};
mshnwq = {
email = "mshnwq.com@gmail.com";
github = "mshnwq";
githubId = 68467027;
name = "Hayan Al-Machnouk";
};
msiedlarek = {
email = "mikolaj@siedlarek.pl";
github = "msiedlarek";
@@ -0,0 +1,34 @@
{
lib,
fetchFromGitHub,
mkYaziPlugin,
jdupes,
bash,
}:
mkYaziPlugin {
pname = "dupes.yazi";
version = "0-unstable-2025-10-16";
src = fetchFromGitHub {
owner = "mshnwq";
repo = "dupes.yazi";
rev = "012a21e1864296503f7bb1e7297b71fe57af8994";
hash = "sha256-VUF7vmtnXuEsbyS0/pPTgwrDDrnMqt77eIkeQZFxoZk=";
};
postPatch = ''
substituteInPlace main.lua --replace-fail \
'set_state("cmdline", "jdupes")' \
'set_state("cmdline", "${lib.getExe jdupes}")'
substituteInPlace main.lua --replace-fail \
'set_state("shell", "bash")' \
'set_state("shell", "${lib.getExe bash}")'
'';
meta = {
description = "Duplicate files plugin for Yazi";
homepage = "https://github.com/Mshnwq/dupes.yazi";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mshnwq ];
};
}