Skip to content

Commit

Permalink
feat: bat builder showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Mar 10, 2024
1 parent 1b6f5c7 commit 340186d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
8 changes: 4 additions & 4 deletions _sources/generated.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"catppuccin-bat": {
"cargoLocks": null,
"date": "2024-03-02",
"date": "2024-03-10",
"extract": null,
"name": "catppuccin-bat",
"passthru": null,
Expand All @@ -11,12 +11,12 @@
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "0ce3d34921ba1b544a4d82aa01352abd553d51ef",
"sha256": "sha256-PLbTLj0qhsDj+xm+OML/AQsfRQVPXLYQNEPllgKcEx4=",
"rev": "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77",
"sha256": "sha256-bWVgDPaFcJK5sCStt1BvB8MTMy7o2uzLYDAKgWqRs3M=",
"type": "git",
"url": "https://github.com/catppuccin/bat"
},
"version": "0ce3d34921ba1b544a4d82aa01352abd553d51ef"
"version": "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77"
},
"catppuccin-wezterm": {
"cargoLocks": null,
Expand Down
8 changes: 4 additions & 4 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
{
catppuccin-bat = {
pname = "catppuccin-bat";
version = "0ce3d34921ba1b544a4d82aa01352abd553d51ef";
version = "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77";
src = fetchgit {
url = "https://github.com/catppuccin/bat";
rev = "0ce3d34921ba1b544a4d82aa01352abd553d51ef";
rev = "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sha256 = "sha256-PLbTLj0qhsDj+xm+OML/AQsfRQVPXLYQNEPllgKcEx4=";
sha256 = "sha256-bWVgDPaFcJK5sCStt1BvB8MTMy7o2uzLYDAKgWqRs3M=";
};
date = "2024-03-02";
date = "2024-03-10";
};
catppuccin-wezterm = {
pname = "catppuccin-wezterm";
Expand Down
26 changes: 18 additions & 8 deletions home/apps/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@
crust = "#080808";
};
};
ctpBat = pkgs.denoPlatform.mkDenoDerivation {
inherit (srcs.catppuccin-bat) pname version src;
buildPhase = ''
deno run -A ./src/main.ts --overrides '${builtins.toJSON overrides}'
'';
installPhase = ''
mkdir -p $out
cp ./themes/* $out/
'';
};
ctpZshFsh = pkgs.denoPlatform.mkDenoDerivation {
inherit (srcs.catppuccin-zsh-fsh) pname version src;
buildPhase = ''
Expand All @@ -66,20 +76,20 @@ in {
enable = true;
themes = {
"Catppuccin Latte" = {
src = srcs.catppuccin-bat.src;
file = "themes/Catppuccin Latte.tmTheme";
src = ctpBat;
file = "Catppuccin Latte.tmTheme";
};
"Catppuccin Frappe" = {
src = srcs.catppuccin-bat.src;
file = "themes/Catppuccin Frappe.tmTheme";
src = ctpBat;
file = "Catppuccin Frappe.tmTheme";
};
"Catppuccin Macchiato" = {
src = srcs.catppuccin-bat.src;
file = "themes/Catppuccin Macchiato.tmTheme";
src = ctpBat;
file = "Catppuccin Macchiato.tmTheme";
};
"Catppuccin Mocha" = {
src = srcs.catppuccin-bat.src;
file = "themes/Catppuccin Mocha.tmTheme";
src = ctpBat;
file = "Catppuccin Mocha.tmTheme";
};
};
};
Expand Down
1 change: 1 addition & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[catppuccin-bat]
src.git = "https://github.com/catppuccin/bat"
src.branch = "feat/add-overrides"
fetch.git = "https://github.com/catppuccin/bat"

[catppuccin-wezterm]
Expand Down

0 comments on commit 340186d

Please sign in to comment.