Merge pull request #315826 from JohnRTitor/catppuccin-plymouth

catppuccin-plymouth: unstable-2022-12-10 -> 0-unstable-2024-05-28
This commit is contained in:
Artturin 2024-06-02 13:47:13 +03:00 committed by GitHub
commit db52a9a666
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 56 additions and 45 deletions

View File

@ -0,0 +1,56 @@
{
stdenvNoCC,
lib,
fetchFromGitHub,
unstableGitUpdater,
variant ? "macchiato",
}:
let
pname = "catppuccin-plymouth";
validVariants = [
"latte"
"frappe"
"macchiato"
"mocha"
];
in
lib.checkListOfEnum "${pname}: color variant" validVariants [ variant ]
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
];
};
})

View File

@ -1,43 +0,0 @@
{ 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 = "${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
'';
meta = with lib; {
description = "Soothing pastel theme for Plymouth";
homepage = "https://github.com/catppuccin/plymouth";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.spectre256 ];
};
}

View File

@ -429,8 +429,6 @@ 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 { };