Merge pull request #275278 from h7x4/pkgs-fixup-powerlevel10k-imports
zsh-powerlevel10k: remove `pkgs` import
This commit is contained in:
commit
dcaba3a80d
1 changed files with 9 additions and 3 deletions
|
@ -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";
|
||||
})
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue