From 7fc44f8731a0273a04948ae5501ace7f80beea1a Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 4 Apr 2025 22:25:40 -0500 Subject: [PATCH] yaziPlugins.git: init at 25.2.26-unstable-2025-03-17 --- pkgs/by-name/ya/yazi/plugins/git/default.nix | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/ya/yazi/plugins/git/default.nix diff --git a/pkgs/by-name/ya/yazi/plugins/git/default.nix b/pkgs/by-name/ya/yazi/plugins/git/default.nix new file mode 100644 index 000000000000..bf6f8b7f9720 --- /dev/null +++ b/pkgs/by-name/ya/yazi/plugins/git/default.nix @@ -0,0 +1,35 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, +}: +stdenvNoCC.mkDerivation { + pname = "git.yazi"; + version = "25.2.26-unstable-2025-03-17"; + + src = fetchFromGitHub { + owner = "yazi-rs"; + repo = "plugins"; + rev = "79193b3917d0f1b82ee41b4e64ae4df58f2284f6"; + hash = "sha256-ZLL/dFjNsryjm51kFNOmw5DhSGl2K5IfatHpe1PkuFE="; + }; + + # NOTE: License is a relative symbolic link + # We remove the link and copy the true license + installPhase = '' + runHook preInstall + + cp -r git.yazi $out + rm $out/LICENSE + cp LICENSE $out + + runHook postInstall + ''; + + meta = { + description = "Show the status of Git file changes as linemode in the file list"; + homepage = "https://yazi-rs.github.io"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ khaneliman ]; + }; +}