{ fetchFromGitHub, stdenvNoCC, lib, makeWrapper, gitAndTools, bc, bat, extraPackages ? [ ], }: let binPath = lib.makeBinPath ( [ gitAndTools.hub gitAndTools.delta bc bat ] ++ extraPackages ); in stdenvNoCC.mkDerivation { pname = "git-fuzzy"; version = "unstable-2023-09-18"; src = fetchFromGitHub { owner = "bigH"; repo = "git-fuzzy"; rev = "fb02ba3522e19ae1c69be80e2a58561fe2416155"; hash = "sha256-Eo2TCx3w3SppoXi8RZu8EC1NhLOnL39bFliHDc2YsyM="; }; patches = [ ./0001-load-git-config.patch ]; postPatch = '' for GF_key in $(grep -ohr -- 'GF_[A-Z0-9_]*' lib | sort -u); do key=''${GF_key#"GF_"} key=''${key//_/-} key=''${key,,} cat >> lib/load-configs-from-git.sh <> lib/load-configs-from-git.sh <