feat: bat builder showcase

This commit is contained in:
winston 2024-03-10 23:57:29 +01:00
parent 1b6f5c775f
commit 340186dccb
Signed by: winston
GPG key ID: 3786770EDBC2B481
4 changed files with 27 additions and 16 deletions

View file

@ -1,7 +1,7 @@
{ {
"catppuccin-bat": { "catppuccin-bat": {
"cargoLocks": null, "cargoLocks": null,
"date": "2024-03-02", "date": "2024-03-10",
"extract": null, "extract": null,
"name": "catppuccin-bat", "name": "catppuccin-bat",
"passthru": null, "passthru": null,
@ -11,12 +11,12 @@
"fetchSubmodules": false, "fetchSubmodules": false,
"leaveDotGit": false, "leaveDotGit": false,
"name": null, "name": null,
"rev": "0ce3d34921ba1b544a4d82aa01352abd553d51ef", "rev": "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77",
"sha256": "sha256-PLbTLj0qhsDj+xm+OML/AQsfRQVPXLYQNEPllgKcEx4=", "sha256": "sha256-bWVgDPaFcJK5sCStt1BvB8MTMy7o2uzLYDAKgWqRs3M=",
"type": "git", "type": "git",
"url": "https://github.com/catppuccin/bat" "url": "https://github.com/catppuccin/bat"
}, },
"version": "0ce3d34921ba1b544a4d82aa01352abd553d51ef" "version": "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77"
}, },
"catppuccin-wezterm": { "catppuccin-wezterm": {
"cargoLocks": null, "cargoLocks": null,

View file

@ -3,16 +3,16 @@
{ {
catppuccin-bat = { catppuccin-bat = {
pname = "catppuccin-bat"; pname = "catppuccin-bat";
version = "0ce3d34921ba1b544a4d82aa01352abd553d51ef"; version = "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77";
src = fetchgit { src = fetchgit {
url = "https://github.com/catppuccin/bat"; url = "https://github.com/catppuccin/bat";
rev = "0ce3d34921ba1b544a4d82aa01352abd553d51ef"; rev = "e9d92785fdf1afe0cd72d8d5ccb6902120d23f77";
fetchSubmodules = false; fetchSubmodules = false;
deepClone = false; deepClone = false;
leaveDotGit = false; leaveDotGit = false;
sha256 = "sha256-PLbTLj0qhsDj+xm+OML/AQsfRQVPXLYQNEPllgKcEx4="; sha256 = "sha256-bWVgDPaFcJK5sCStt1BvB8MTMy7o2uzLYDAKgWqRs3M=";
}; };
date = "2024-03-02"; date = "2024-03-10";
}; };
catppuccin-wezterm = { catppuccin-wezterm = {
pname = "catppuccin-wezterm"; pname = "catppuccin-wezterm";

View file

@ -40,6 +40,16 @@
crust = "#080808"; 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 { ctpZshFsh = pkgs.denoPlatform.mkDenoDerivation {
inherit (srcs.catppuccin-zsh-fsh) pname version src; inherit (srcs.catppuccin-zsh-fsh) pname version src;
buildPhase = '' buildPhase = ''
@ -66,20 +76,20 @@ in {
enable = true; enable = true;
themes = { themes = {
"Catppuccin Latte" = { "Catppuccin Latte" = {
src = srcs.catppuccin-bat.src; src = ctpBat;
file = "themes/Catppuccin Latte.tmTheme"; file = "Catppuccin Latte.tmTheme";
}; };
"Catppuccin Frappe" = { "Catppuccin Frappe" = {
src = srcs.catppuccin-bat.src; src = ctpBat;
file = "themes/Catppuccin Frappe.tmTheme"; file = "Catppuccin Frappe.tmTheme";
}; };
"Catppuccin Macchiato" = { "Catppuccin Macchiato" = {
src = srcs.catppuccin-bat.src; src = ctpBat;
file = "themes/Catppuccin Macchiato.tmTheme"; file = "Catppuccin Macchiato.tmTheme";
}; };
"Catppuccin Mocha" = { "Catppuccin Mocha" = {
src = srcs.catppuccin-bat.src; src = ctpBat;
file = "themes/Catppuccin Mocha.tmTheme"; file = "Catppuccin Mocha.tmTheme";
}; };
}; };
}; };

View file

@ -1,5 +1,6 @@
[catppuccin-bat] [catppuccin-bat]
src.git = "https://github.com/catppuccin/bat" src.git = "https://github.com/catppuccin/bat"
src.branch = "feat/add-overrides"
fetch.git = "https://github.com/catppuccin/bat" fetch.git = "https://github.com/catppuccin/bat"
[catppuccin-wezterm] [catppuccin-wezterm]