Skip to content

Commit

Permalink
Merge pull request #316641 from NixOS/backport-315826-to-release-24.05
Browse files Browse the repository at this point in the history
[Backport release-24.05] catppuccin-plymouth: unstable-2022-12-10 -> 0-unstable-2024-05-28
  • Loading branch information
Artturin authored Jun 2, 2024
2 parents 5c91021 + 6647262 commit 71f2ba7
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 45 deletions.
56 changes: 56 additions & 0 deletions pkgs/by-name/ca/catppuccin-plymouth/package.nix
Original file line number Diff line number Diff line change
@@ -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
];
};
})
43 changes: 0 additions & 43 deletions pkgs/data/themes/catppuccin-plymouth/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 71f2ba7

Please sign in to comment.