2024-05-30 07:44:14 +00:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
unstableGitUpdater,
|
|
|
|
variant ? "macchiato",
|
2023-05-19 17:39:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "catppuccin-plymouth";
|
2024-05-30 07:44:14 +00:00
|
|
|
validVariants = [
|
|
|
|
"latte"
|
|
|
|
"frappe"
|
|
|
|
"macchiato"
|
|
|
|
"mocha"
|
|
|
|
];
|
2023-05-19 17:39:46 +00:00
|
|
|
in
|
|
|
|
lib.checkListOfEnum "${pname}: color variant" validVariants [ variant ]
|
|
|
|
|
2024-05-30 07:44:14 +00:00
|
|
|
stdenvNoCC.mkDerivation
|
|
|
|
(finalAttrs: {
|
|
|
|
inherit pname;
|
|
|
|
version = "0-unstable-2024-05-28";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "plymouth";
|
|
|
|
rev = "e13c348a0f47772303b2da1e9396027d8cda160d";
|
|
|
|
hash = "sha256-6DliqhRncvdPuKzL9LJec3PJWmK/jo9BrrML7g6YcH0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/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
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Soothing pastel theme for Plymouth";
|
|
|
|
homepage = "https://github.com/catppuccin/plymouth";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
johnrtitor
|
|
|
|
spectre256
|
|
|
|
];
|
|
|
|
};
|
|
|
|
})
|