zsh-powerlevel10k: avoid importing pkgs

This commit is contained in:
h7x4 2023-12-18 15:52:23 +01:00
parent fd439a4618
commit 8e0593ccf3
No known key found for this signature in database
GPG key ID: 9F2F7D8250F35146

View file

@ -2,7 +2,7 @@
, stdenv
, fetchFromGitHub
, substituteAll
, pkgs
, gitstatus
, bash
}:
@ -10,7 +10,7 @@
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 {
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
patches = [
(substituteAll {
src = ./gitstatusd.patch;
gitstatusdPath = "${gitstatus}/bin/gitstatusd";
gitstatusdPath = "${gitstatus'}/bin/gitstatusd";
})
];