about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorJanne Heß <dasJ@users.noreply.github.com>2024-01-16 17:55:16 +0100
committerGitHub <noreply@github.com>2024-01-16 17:55:16 +0100
commit3e59dadcfe924ad979b3f663c613031fec7e9a18 (patch)
treee83a27e66945eb4031cee825e759d6eee9abbb0d /pkgs/data
parent00814554e41884d2c737c810438720ba001c23e5 (diff)
parentcf1dfaa32a0201cc14801ebb93b5ef865d42522a (diff)
Merge pull request #280779 from toast003/catppuccin-starship-theme
catppuccin: add starship theme
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/themes/catppuccin/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/data/themes/catppuccin/default.nix b/pkgs/data/themes/catppuccin/default.nix
index c9a51ba241d48..25794c9e67d7c 100644
--- a/pkgs/data/themes/catppuccin/default.nix
+++ b/pkgs/data/themes/catppuccin/default.nix
@@ -1,5 +1,5 @@
 let
-  validThemes = [ "bat" "bottom" "btop" "grub" "hyprland" "k9s" "kvantum" "lazygit" "plymouth" "qt5ct" "refind" "rofi" "waybar" ];
+  validThemes = [ "bat" "bottom" "btop" "grub" "hyprland" "k9s" "kvantum" "lazygit" "plymouth" "qt5ct" "refind" "rofi" "starship" "waybar" ];
 in
 { fetchFromGitHub
 , lib
@@ -112,6 +112,14 @@ let
       hash = "sha256-DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY=";
     };
 
+    starship = fetchFromGitHub {
+      name = "starship";
+      owner = "catppuccin";
+      repo = "starship";
+      rev = "5629d2356f62a9f2f8efad3ff37476c19969bd4f";
+      hash = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
+    };
+
     waybar = fetchFromGitHub {
       name = "waybar";
       owner = "catppuccin";
@@ -195,6 +203,10 @@ stdenvNoCC.mkDerivation {
     cp ${sources.refind}/${variant}.conf $out/refind/
     cp -r ${sources.refind}/assets/${variant} $out/refind/assets/
 
+  '' + lib.optionalString (lib.elem "starship" themeList) ''
+    mkdir -p $out/starship
+    cp ${sources.starship}/palettes/${variant}.toml $out/starship/
+
   '' + lib.optionalString (lib.elem "waybar" themeList) ''
     mkdir -p $out/waybar
     cp ${sources.waybar}/${variant}.css $out/waybar/