diff --git a/pkgs/shells/zsh/zsh-powerlevel10k/default.nix b/pkgs/shells/zsh/zsh-powerlevel10k/default.nix index be1d69e3e2e3b..bc357be79bb81 100644 --- a/pkgs/shells/zsh/zsh-powerlevel10k/default.nix +++ b/pkgs/shells/zsh/zsh-powerlevel10k/default.nix @@ -1,10 +1,16 @@ -{ lib, stdenv, fetchFromGitHub, substituteAll, pkgs, bash }: +{ lib +, stdenv +, fetchFromGitHub +, substituteAll +, gitstatus +, bash +}: let # match gitstatus version with given `gitstatus_version`: # https://github.com/romkatv/powerlevel10k/blob/master/gitstatus/build.info - gitstatus = pkgs.gitstatus.overrideAttrs (oldAtttrs: rec { + gitstatus' = gitstatus.overrideAttrs (oldAtttrs: rec { version = "1.5.4"; src = fetchFromGitHub { @@ -32,7 +38,7 @@ stdenv.mkDerivation rec { patches = [ (substituteAll { src = ./gitstatusd.patch; - gitstatusdPath = "${gitstatus}/bin/gitstatusd"; + gitstatusdPath = "${gitstatus'}/bin/gitstatusd"; }) ];