From 26964e0655ef866ad21a97f3846d946f7fd7ec36 Mon Sep 17 00:00:00 2001 From: Shawn8901 Date: Thu, 19 Dec 2024 16:21:12 +0100 Subject: [PATCH] zsh-powerlevel10k: add upstream patch to compile with gcc14 --- pkgs/by-name/zs/zsh-powerlevel10k/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 {