forked from mirrors/nixpkgs
4cb0894bc1
Changes since the last release New and changed parameters: Two additional parameters are available in gcloud: P9K_GCLOUD_CONFIGURATION and P9K_GCLOUD_PROJECT_NAME. gcloud segment can now be in two states: PARTIAL and COMPLETE. See documentation. Wizard: The screen asking whether to display current time now offers a choice between two formats: 24-hour and 12-hour. os_icon is no longer bold. Slanted and flat separators are now using glyphs from Box Drawing Unicode block. They should look much better in fonts with correctly sized Box Drawing glyphs. gcloud now displays project name instead of project id whenever possible. Bug fixes: Powerlevel10k no longer resolves symbolic links when calling commands that might act differently depending on argv[0]. java_version now works properly when using AdoptOpenJDK. Misc: Arch Linux users can now install Powerlevel10k with pacman. See instructions. There is a new version of MesloLGS NF (the recommended font) with better alignment of powerline glyphs and 44% larger icons (by area). iTerm2 users can upgrade by typing p10k configure. Users of other terminals can follow manual installation instructions.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, substituteAll, pkgs }:
|
|
|
|
# To make use of this derivation, use
|
|
# `programs.zsh.promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";`
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "powerlevel10k";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "romkatv";
|
|
repo = "powerlevel10k";
|
|
rev = "v${version}";
|
|
sha256 = "0r8vccgfy85ryswaigzgwmvhvrhlap7nrg7bi66w63877znqlksj";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./gitstatusd.patch;
|
|
gitstatusdPath = "${pkgs.gitAndTools.gitstatus}/bin/gitstatusd";
|
|
})
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D powerlevel10k.zsh-theme --target-directory=$out/share/zsh-powerlevel10k
|
|
install -D config/* --target-directory=$out/share/zsh-powerlevel10k/config
|
|
install -D internal/* --target-directory=$out/share/zsh-powerlevel10k/internal
|
|
rm -r gitstatus/bin
|
|
install -D gitstatus/* --target-directory=$out/share/zsh-powerlevel10k/gitstatus
|
|
'';
|
|
|
|
meta = {
|
|
description = "A fast reimplementation of Powerlevel9k ZSH theme";
|
|
homepage = "https://github.com/romkatv/powerlevel10k";
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.hexa ];
|
|
};
|
|
}
|