mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
powerline-gp: pull upstream version, remove bold patch
This commit is contained in:
parent
a6e82c0827
commit
cb56d31959
2 changed files with 11 additions and 16 deletions
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/powerline.go b/powerline.go
|
|
||||||
index 0b640ac..7778ebf 100644
|
|
||||||
--- a/powerline.go
|
|
||||||
+++ b/powerline.go
|
|
||||||
@@ -177,7 +177,7 @@ func (p *powerline) color(prefix string, code uint8) string {
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *powerline) fgColor(code uint8) string {
|
|
||||||
- return p.color("38", code)
|
|
||||||
+ return p.color("1;38", code)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *powerline) bgColor(code uint8) string {
|
|
|
@ -5,9 +5,10 @@ let
|
||||||
|
|
||||||
theme = pkgs.writeText "powerline.json" (builtins.toJSON
|
theme = pkgs.writeText "powerline.json" (builtins.toJSON
|
||||||
{
|
{
|
||||||
|
BoldForeground = true;
|
||||||
CwdFg = 15;
|
CwdFg = 15;
|
||||||
PathFg = 15;
|
|
||||||
PathBg = 24;
|
PathBg = 24;
|
||||||
|
PathFg = 15;
|
||||||
SeparatorFg = 16;
|
SeparatorFg = 16;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -38,9 +39,16 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.powerline-go.overrideAttrs (old: {
|
((pkgs.callPackage
|
||||||
|
(pkgs.fetchurl
|
||||||
|
{
|
||||||
|
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/6ce4a720012398d451c21bc042d6740e92289615/pkgs/tools/misc/powerline-go/default.nix";
|
||||||
|
sha256 = "7a8294ac9726da9531f1e506369233b051ecc6aa32c77a281f7167027a89977e";
|
||||||
|
}
|
||||||
|
)
|
||||||
|
{ }
|
||||||
|
).overrideAttrs (old: {
|
||||||
patches = [
|
patches = [
|
||||||
./bold.patch
|
|
||||||
./shlvl.patch
|
./shlvl.patch
|
||||||
];
|
];
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue