Merge pull request #275278 from h7x4/pkgs-fixup-powerlevel10k-imports

zsh-powerlevel10k: remove `pkgs` import
This commit is contained in:
Martin Weinelt 2023-12-19 06:54:57 +01:00 committed by GitHub
commit dcaba3a80d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";
})
];