From 80edf81c02b4f266e067f47911c232fdb0e5816e Mon Sep 17 00:00:00 2001 From: mshnwq Date: Fri, 17 Oct 2025 16:11:17 +0300 Subject: [PATCH 1/2] maintainers: add mshnwq --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 6bd31cb1083d..1fcb2ce7cb3a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17586,6 +17586,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"; From 66595d469ee964a75e30a08eb9abcaaab4d30a5e Mon Sep 17 00:00:00 2001 From: mshnwq Date: Fri, 17 Oct 2025 16:11:47 +0300 Subject: [PATCH 2/2] yaziPlugins.dupes: init at 0-unstable-2025-10-16 --- .../by-name/ya/yazi/plugins/dupes/default.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ya/yazi/plugins/dupes/default.nix 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 ]; + }; +}