catppuccin-plymouth: fix variant selection (#407409)
This commit is contained in:
@@ -15,42 +15,41 @@ let
|
||||
"mocha"
|
||||
];
|
||||
in
|
||||
lib.checkListOfEnum "${pname}: color variant" validVariants [ variant ]
|
||||
assert lib.assertOneOf "${pname}: color variant" variant validVariants;
|
||||
|
||||
stdenvNoCC.mkDerivation
|
||||
(finalAttrs: {
|
||||
inherit pname;
|
||||
version = "0-unstable-2024-10-19";
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
inherit pname;
|
||||
version = "0-unstable-2024-10-19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "plymouth";
|
||||
rev = "e0f58d6fcf3dbc2d35dfc4fec394217fbfa92666";
|
||||
hash = "sha256-He6ER1QNrJCUthFoBBGHBINouW/tozxQy3R79F5tsuo=";
|
||||
};
|
||||
src = fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "plymouth";
|
||||
rev = "e0f58d6fcf3dbc2d35dfc4fec394217fbfa92666";
|
||||
hash = "sha256-He6ER1QNrJCUthFoBBGHBINouW/tozxQy3R79F5tsuo=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/themes/catppuccin-${variant}";
|
||||
sourceRoot = "${finalAttrs.src.name}/themes/catppuccin-${variant}";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
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}
|
||||
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
|
||||
'';
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
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
|
||||
];
|
||||
};
|
||||
})
|
||||
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
|
||||
];
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user