mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #275278 from h7x4/pkgs-fixup-powerlevel10k-imports
zsh-powerlevel10k: remove `pkgs` import
This commit is contained in:
commit
dcaba3a80d
@ -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 New Issue
Block a user