diff --git a/pkgs/by-name/zs/zsh-powerlevel10k/package.nix b/pkgs/by-name/zs/zsh-powerlevel10k/package.nix index 574e1f966b276..9474577c628a0 100644 --- a/pkgs/by-name/zs/zsh-powerlevel10k/package.nix +++ b/pkgs/by-name/zs/zsh-powerlevel10k/package.nix @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, replaceVars, + fetchpatch, gitstatus, bash, }: @@ -19,6 +20,16 @@ let rev = "refs/tags/v${version}"; hash = "sha256-mVfB3HWjvk4X8bmLEC/U8SKBRytTh/gjjuReqzN5qTk="; }; + + patches = (oldAtttrs.patches or [ ]) ++ [ + # remove when bumped to 1.5.5 + (fetchpatch { + url = "https://github.com/romkatv/gitstatus/commit/62177e89b2b04baf242cd1526cc2661041dda0fb.patch"; + sha256 = "sha256-DSRYRV89MLR/Eh4MFsXpDKH1xJiAWyJgSqmfjDTXhtU="; + name = "drop-Werror.patch"; + }) + ]; + }); in stdenv.mkDerivation rec {