mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
Merge pull request #259511 from khaneliman/catbat
This commit is contained in:
commit
354d127959
39
pkgs/data/themes/catppuccin-bat/default.nix
Normal file
39
pkgs/data/themes/catppuccin-bat/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ fetchFromGitHub
|
||||
, lib
|
||||
, stdenvNoCC
|
||||
, variant ? "macchiato"
|
||||
}:
|
||||
let
|
||||
pname = "catppuccin-bat";
|
||||
validVariants = [ "latte" "frappe" "macchiato" "mocha" ];
|
||||
in
|
||||
lib.checkListOfEnum "${pname}: color variant" validVariants [ variant ]
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
inherit pname;
|
||||
version = "unstable-2022-11-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "bat";
|
||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
||||
hash = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp "Catppuccin-${variant}.tmTheme" $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Soothing pastel theme for bat";
|
||||
homepage = "https://github.com/catppuccin/bat";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = [ lib.maintainers.khaneliman ];
|
||||
};
|
||||
}
|
@ -430,6 +430,8 @@ with pkgs;
|
||||
|
||||
catatonit = callPackage ../applications/virtualization/catatonit { };
|
||||
|
||||
catppuccin-bat = callPackage ../data/themes/catppuccin-bat { };
|
||||
|
||||
catppuccin-catwalk = callPackage ../development/tools/misc/catppuccin-catwalk { };
|
||||
|
||||
catppuccin-gtk = callPackage ../data/themes/catppuccin-gtk { };
|
||||
|
Loading…
Reference in New Issue
Block a user