@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, ncurses, pcre, buildPackages }:
1+{ lib, stdenv, fetchurl, fetchpatch, ncurses, pcre, buildPackages }:
22
33let
44 version = "5.8";
@@ -21,6 +21,13 @@ stdenv.mkDerivation {
2121 patches = [
2222 # fix location of timezone data for TZ= completion
2323 ./tz_completion.patch
24+ # This commit will be released with the next version of zsh
25+ (fetchpatch {
26+ name = "fix-git-stash-drop-completions.patch";
27+ url = "https://github.com/zsh-users/zsh/commit/754658aff38e1bdf487c58bec6174cbecd019d11.patch";
28+ sha256 = "sha256-ud/rLD+SqvyTzT6vwOr+MWH+LY5o5KACrU1TpmL15Lo=";
29+ excludes = [ "ChangeLog" ];
30+ })
2431 ];
2532
2633 buildInputs = [ ncurses pcre ];