auto lint

This commit is contained in:
alsaiduq-lab 2025-03-17 16:10:17 -06:00
parent a765516271
commit 6a9932451c
35 changed files with 262 additions and 205 deletions

View file

@ -1,4 +1,9 @@
{ lib, stdenv, fetchFromGitHub, hicolor-icon-theme }:
{
lib,
stdenv,
fetchFromGitHub,
hicolor-icon-theme,
}:
stdenv.mkDerivation rec {
pname = "vivid-icons";
version = "2025-03-16";
@ -8,40 +13,40 @@ stdenv.mkDerivation rec {
rev = "fe8b8f1bdd3784dc838c125bb9e1b2d713f40e67";
sha256 = "1rcphy08r6337gbp98nz00mj780jn9kwm40ngd9pxnlvwp2n8mjj";
};
buildInputs = [ hicolor-icon-theme ];
buildInputs = [hicolor-icon-theme];
installPhase = ''
mkdir -p $out/share/icons
cp -r "Vivid Icons Themes/"* $out/share/icons/
for theme in $out/share/icons/*; do
if [ -d "$theme" ]; then
echo "Processing theme: $theme"
cat > "$theme/index.theme" <<EOF
[Icon Theme]
Name=$(basename "$theme")
Comment=$(basename "$theme") icons
Inherits=hicolor
Directories=8x8,16x16,22x22
[8x8]
Size=8
Context=Emblems
Type=Fixed
[16x16]
Size=16
Context=Actions
Type=Fixed
[22x22]
Size=22
Context=Actions
Type=Fixed
EOF
fi
done
mkdir -p $out/share/icons
cp -r "Vivid Icons Themes/"* $out/share/icons/
for theme in $out/share/icons/*; do
if [ -d "$theme" ]; then
echo "Processing theme: $theme"
cat > "$theme/index.theme" <<EOF
[Icon Theme]
Name=$(basename "$theme")
Comment=$(basename "$theme") icons
Inherits=hicolor
Directories=8x8,16x16,22x22
[8x8]
Size=8
Context=Emblems
Type=Fixed
[16x16]
Size=16
Context=Actions
Type=Fixed
[22x22]
Size=22
Context=Actions
Type=Fixed
EOF
fi
done
'';
meta = with lib; {
description = "Vivid Icons Theme";
homepage = "https://github.com/L4ki/Vivid-Plasma-Themes";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = [ "Cobray" ];
maintainers = ["Cobray"];
};
}