fzf-git-sh: 0-unstable-2024-03-17 -> 0-unstable-2025-02-20 (#401167)
This commit is contained in:
@@ -11,26 +11,27 @@
|
||||
git,
|
||||
gnugrep,
|
||||
gnused,
|
||||
tmux,
|
||||
util-linux,
|
||||
xdg-utils,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fzf-git-sh";
|
||||
version = "0-unstable-2024-03-17";
|
||||
version = "0-unstable-2025-02-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "junegunn";
|
||||
repo = "fzf-git.sh";
|
||||
rev = "e4cba1fcf8aed9a2348e47b0ba64299122b81709";
|
||||
hash = "sha256-glI+TldLGGiXyI5ZghaEgjc+2DJCMdmBnho/Z7IgJoE=";
|
||||
rev = "6651e719da630cd8e6e00191af7f225f6d13a801";
|
||||
hash = "sha256-FgJ5eyGU5EXmecwdjbiV+/rnyRaSMi8BLYWayeYgCJw=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
postPatch = ''
|
||||
sed -i \
|
||||
-e "s,\bfzf\b,${fzf}/bin/fzf," \
|
||||
-e "s,\bawk\b,${gawk}/bin/awk," \
|
||||
-e "s,\bbash\b,${bash}/bin/bash," \
|
||||
-e "s,\bbat\b,${bat}/bin/bat," \
|
||||
@@ -39,10 +40,8 @@ stdenv.mkDerivation rec {
|
||||
-e "s,\bhead\b,${coreutils}/bin/head," \
|
||||
-e "s,\buniq\b,${coreutils}/bin/uniq," \
|
||||
-e "s,\bcolumn\b,${util-linux}/bin/column," \
|
||||
-e "s,\bfzf-tmux\b,${fzf}/bin/fzf-tmux," \
|
||||
-e "s,\bgrep\b,${gnugrep}/bin/grep," \
|
||||
-e "s,\bsed\b,${gnused}/bin/sed," \
|
||||
-e "/fzf-tmux/!s,\btmux\b,${tmux}/bin/tmux," \
|
||||
-e "s,\bxargs\b,${findutils}/bin/xargs," \
|
||||
-e "s,\bxdg-open\b,${xdg-utils}/bin/xdg-open," \
|
||||
-e "/display-message\|fzf-git-\$o-widget\|\burl=\|\$remote_url =~ /!s,\bgit\b,${git}/bin/git,g" \
|
||||
@@ -55,6 +54,8 @@ stdenv.mkDerivation rec {
|
||||
install -D fzf-git.sh $out/share/${pname}/fzf-git.sh
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/junegunn/fzf-git.sh";
|
||||
description = "Bash and zsh key bindings for Git objects, powered by fzf";
|
||||
|
||||
Reference in New Issue
Block a user