From 7304dc8969d8016e1cfdb451fa95f2835f6d259c Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 4 Apr 2025 22:42:27 -0500 Subject: [PATCH] yaziPlugins.vcs-files: init at 25.3.7-unstable-2025-03-07 --- .../ya/yazi/plugins/vcs-files/default.nix | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/ya/yazi/plugins/vcs-files/default.nix 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 ]; + }; +}