diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5a751a36b1f6..75cd523cb779 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/by-name/ya/yazi/plugins/dupes/default.nix b/pkgs/by-name/ya/yazi/plugins/dupes/default.nix new file mode 100644 index 000000000000..91d13ed09275 --- /dev/null +++ b/pkgs/by-name/ya/yazi/plugins/dupes/default.nix @@ -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 ]; + }; +}