diff --git a/pkgs/by-name/ya/yazi/plugins/bypass/default.nix b/pkgs/by-name/ya/yazi/plugins/bypass/default.nix new file mode 100644 index 000000000000..66f1a52e0d93 --- /dev/null +++ b/pkgs/by-name/ya/yazi/plugins/bypass/default.nix @@ -0,0 +1,31 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, +}: +stdenvNoCC.mkDerivation { + pname = "bypass.yazi"; + version = "0-unstable-2025-02-16"; + + src = fetchFromGitHub { + owner = "Rolv-Apneseth"; + repo = "bypass.yazi"; + rev = "ecb1f7f6fd305ff4ffff548fa955595af6b26e60"; + hash = "sha256-XXp4XflrVrs8FrUCRUbSxWZTSGPrIGrpqvB1pARerKQ="; + }; + + installPhase = '' + runHook preInstall + + cp -r . $out + + runHook postInstall + ''; + + meta = { + description = "Yazi plugin for skipping directories with only a single sub-directory."; + homepage = "https://github.com/Rolv-Apneseth/bypass.yazi"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ khaneliman ]; + }; +}