Merge pull request #232651 from spectre256/master

catppuccin-plymouth: init at unstable-2022-12-10
This commit is contained in:
Sandro 2023-05-22 00:27:20 +02:00 committed by GitHub
commit 6819a08e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 0 deletions

View file

@ -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";

View file

@ -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 ];
};
}

View file

@ -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 { };