catppuccin-papirus-folders: init at unstable-2023-02-03
This commit is contained in:
parent
959190ecf6
commit
394f7208f0
54
pkgs/data/icons/catppuccin-papirus-folders/default.nix
Normal file
54
pkgs/data/icons/catppuccin-papirus-folders/default.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
stdenvNoCC,
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
gtk3,
|
||||||
|
papirus-icon-theme,
|
||||||
|
flavor ? "mocha",
|
||||||
|
accent ? "blue"
|
||||||
|
}: let
|
||||||
|
validAccents = ["blue" "flamingo" "green" "lavender" "maroon" "mauve" "peach" "pink" "red" "rosewater" "sapphire" "sky" "teal" "yellow"];
|
||||||
|
validFlavors = ["latte" "frappe" "macchiato" "mocha"];
|
||||||
|
pname = "catppuccin-papirus-folders";
|
||||||
|
in
|
||||||
|
lib.checkListOfEnum "${pname}: accent colors" validAccents [ accent ]
|
||||||
|
lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
inherit pname;
|
||||||
|
version = "unstable-2022-12-04";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "papirus-folders";
|
||||||
|
rev = "1a367642df9cf340770bd7097fbe85b9cea65bcb";
|
||||||
|
sha256 = "sha256-mFDfRVDA9WyriyFVzsI7iqmPopN56z54FvLkZDS2Dv8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ gtk3 ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs ./papirus-folders
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out/share/icons
|
||||||
|
cp -r --no-preserve=mode ${papirus-icon-theme}/share/icons/Papirus* $out/share/icons
|
||||||
|
cp -r src/* $out/share/icons/Papirus
|
||||||
|
for theme in $out/share/icons/*; do
|
||||||
|
USER_HOME=$HOME DISABLE_UPDATE_ICON_CACHE=1 \
|
||||||
|
./papirus-folders -t $theme -o -C cat-${flavor}-${accent}
|
||||||
|
gtk-update-icon-cache --force $theme
|
||||||
|
done
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Soothing pastel theme for Papirus Icon Theme folders";
|
||||||
|
homepage = "https://github.com/catppuccin/papirus-folders";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ rubyowo ];
|
||||||
|
};
|
||||||
|
}
|
@ -378,6 +378,8 @@ with pkgs;
|
|||||||
|
|
||||||
catppuccin-kde = callPackage ../data/themes/catppuccin-kde { };
|
catppuccin-kde = callPackage ../data/themes/catppuccin-kde { };
|
||||||
|
|
||||||
|
catppuccin-papirus-folders = callPackage ../data/icons/catppuccin-papirus-folders { };
|
||||||
|
|
||||||
btdu = callPackage ../tools/misc/btdu { };
|
btdu = callPackage ../tools/misc/btdu { };
|
||||||
|
|
||||||
cereal = callPackage ../development/libraries/cereal { };
|
cereal = callPackage ../development/libraries/cereal { };
|
||||||
|
Loading…
Reference in New Issue
Block a user