diff --git a/pkgs/by-name/ya/yazi/plugins/vcs-files/default.nix b/pkgs/by-name/ya/yazi/plugins/vcs-files/default.nix new file mode 100644 index 000000000000..80364c0615f7 --- /dev/null +++ b/pkgs/by-name/ya/yazi/plugins/vcs-files/default.nix @@ -0,0 +1,35 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, +}: +stdenvNoCC.mkDerivation { + pname = "vcs-files.yazi"; + version = "25.3.7-unstable-2025-03-07"; + + src = fetchFromGitHub { + owner = "yazi-rs"; + repo = "plugins"; + rev = "273019910c1111a388dd20e057606016f4bd0d17"; + hash = "sha256-80mR86UWgD11XuzpVNn56fmGRkvj0af2cFaZkU8M31I="; + }; + + # NOTE: License is a relative symbolic link + # We remove the link and copy the true license + installPhase = '' + runHook preInstall + + cp -r vcs-files.yazi $out + rm $out/LICENSE + cp LICENSE $out + + runHook postInstall + ''; + + meta = { + description = "Previewing archive contents with vcs-files"; + homepage = "https://yazi-rs.github.io"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ khaneliman ]; + }; +}