From 41c7806df50a88b723667969c3d3078bf298226f Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Thu, 28 Oct 2021 10:08:35 +1100 Subject: [PATCH] zsh: fix `git stash drop` completions --- pkgs/shells/zsh/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index 92eebfd95442..e0fd68f13b60 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, ncurses, pcre, buildPackages }: +{ lib, stdenv, fetchurl, fetchpatch, ncurses, pcre, buildPackages }: let version = "5.8"; @@ -21,6 +21,13 @@ stdenv.mkDerivation { patches = [ # fix location of timezone data for TZ= completion ./tz_completion.patch + # This commit will be released with the next version of zsh + (fetchpatch { + name = "fix-git-stash-drop-completions.patch"; + url = "https://github.com/zsh-users/zsh/commit/754658aff38e1bdf487c58bec6174cbecd019d11.patch"; + sha256 = "sha256-ud/rLD+SqvyTzT6vwOr+MWH+LY5o5KACrU1TpmL15Lo="; + excludes = [ "ChangeLog" ]; + }) ]; buildInputs = [ ncurses pcre ];