diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f639dc7ab21f..4d43e2d215ce 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14830,6 +14830,12 @@ githubId = 2825204; name = "Steven Pease"; }; + spectre256 = { + name = "Ellis Gibbons"; + email = "egibbons256@gmail.com"; + github = "spectre256"; + githubId = 72505298; + }; spencerjanssen = { email = "spencerjanssen@gmail.com"; matrix = "@sjanssen:matrix.org"; diff --git a/pkgs/data/themes/catppuccin-plymouth/default.nix b/pkgs/data/themes/catppuccin-plymouth/default.nix new file mode 100644 index 000000000000..69a07f46d0df --- /dev/null +++ b/pkgs/data/themes/catppuccin-plymouth/default.nix @@ -0,0 +1,43 @@ +{ stdenvNoCC +, lib +, fetchFromGitHub +, variant ? "macchiato" +}: + +let + pname = "catppuccin-plymouth"; + validVariants = [ "latte" "frappe" "macchiato" "mocha" ]; +in +lib.checkListOfEnum "${pname}: color variant" validVariants [ variant ] + +stdenvNoCC.mkDerivation rec { + inherit pname; + version = "unstable-2022-12-10"; + + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "plymouth"; + rev = "d4105cf336599653783c34c4a2d6ca8c93f9281c"; + hash = "sha256-quBSH8hx3gD7y1JNWAKQdTk3CmO4t1kVo4cOGbeWlNE="; + }; + + sourceRoot = "source/themes/catppuccin-${variant}"; + + installPhase = '' + runHook preInstall + + sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' catppuccin-${variant}.plymouth + mkdir -p $out/share/plymouth/themes/catppuccin-${variant} + cp * $out/share/plymouth/themes/catppuccin-${variant} + + runHook postInstall + ''; + + meta = with lib; { + description = "Soothing pastel theme for Plymouth"; + homepage = "https://github.com/catppuccin/plymouth"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.spectre256 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 143a085d485f..43d761551d20 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -405,6 +405,8 @@ with pkgs; catppuccin-papirus-folders = callPackage ../data/icons/catppuccin-papirus-folders { }; + catppuccin-plymouth = callPackage ../data/themes/catppuccin-plymouth { }; + btdu = callPackage ../tools/misc/btdu { }; ccal = callPackage ../tools/misc/ccal { };