mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
catppuccin-plymouth: fix formatting using "nix fmt" as written in the CONTRIBUTING.md documentation
This commit is contained in:
parent
203e626742
commit
def8389c97
1 changed files with 35 additions and 36 deletions
|
@ -1,9 +1,9 @@
|
||||||
{ stdenvNoCC
|
{
|
||||||
, lib
|
stdenvNoCC,
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, unstableGitUpdater
|
fetchFromGitHub,
|
||||||
, variant ? "macchiato"
|
unstableGitUpdater,
|
||||||
,
|
variant ? "macchiato",
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -17,40 +17,39 @@ let
|
||||||
in
|
in
|
||||||
assert lib.assertOneOf "${pname}: color variant" variant validVariants;
|
assert lib.assertOneOf "${pname}: color variant" variant validVariants;
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
(finalAttrs: {
|
inherit pname;
|
||||||
inherit pname;
|
version = "0-unstable-2024-10-19";
|
||||||
version = "0-unstable-2024-10-19";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
repo = "plymouth";
|
repo = "plymouth";
|
||||||
rev = "e0f58d6fcf3dbc2d35dfc4fec394217fbfa92666";
|
rev = "e0f58d6fcf3dbc2d35dfc4fec394217fbfa92666";
|
||||||
hash = "sha256-He6ER1QNrJCUthFoBBGHBINouW/tozxQy3R79F5tsuo=";
|
hash = "sha256-He6ER1QNrJCUthFoBBGHBINouW/tozxQy3R79F5tsuo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${finalAttrs.src.name}/themes/catppuccin-${variant}";
|
sourceRoot = "${finalAttrs.src.name}/themes/catppuccin-${variant}";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' catppuccin-${variant}.plymouth
|
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' catppuccin-${variant}.plymouth
|
||||||
mkdir -p $out/share/plymouth/themes/catppuccin-${variant}
|
mkdir -p $out/share/plymouth/themes/catppuccin-${variant}
|
||||||
cp * $out/share/plymouth/themes/catppuccin-${variant}
|
cp * $out/share/plymouth/themes/catppuccin-${variant}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = unstableGitUpdater { };
|
passthru.updateScript = unstableGitUpdater { };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Soothing pastel theme for Plymouth";
|
description = "Soothing pastel theme for Plymouth";
|
||||||
homepage = "https://github.com/catppuccin/plymouth";
|
homepage = "https://github.com/catppuccin/plymouth";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with lib.maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
johnrtitor
|
johnrtitor
|
||||||
spectre256
|
spectre256
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue