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": {
"cargoLocks": null,
"date": "2024-03-02",
"date": "2024-03-10",
"extract": null,
"name": "catppuccin-bat",
"passthru": null,
@ -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,

View file

@ -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";

View file

@ -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 = ''
@ -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";
};
};
};

View file

@ -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]