Skip to content

Commit

Permalink
Merge pull request #275278 from h7x4/pkgs-fixup-powerlevel10k-imports
Browse files Browse the repository at this point in the history
zsh-powerlevel10k: remove `pkgs` import
  • Loading branch information
mweinelt authored Dec 19, 2023
2 parents 42b9f21 + 8e0593c commit dcaba3a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/shells/zsh/zsh-powerlevel10k/default.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -32,7 +38,7 @@ stdenv.mkDerivation rec {
patches = [
(substituteAll {
src = ./gitstatusd.patch;
gitstatusdPath = "${gitstatus}/bin/gitstatusd";
gitstatusdPath = "${gitstatus'}/bin/gitstatusd";
})
];

Expand Down

0 comments on commit dcaba3a

Please sign in to comment.