try to fix theme

This commit is contained in:
Alex 2024-07-31 20:41:19 -04:00
parent 79d7e8c00d
commit 7858cbeab3
1 changed files with 18 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenv }: { lib, stdenv, gtk3, adwaita-icon-theme, hicolor-icon-theme }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "theme-platinum9"; name = "theme-platinum9";
@ -10,6 +10,17 @@ stdenv.mkDerivation rec {
rev = version; rev = version;
}; };
nativeBuildInputs = [
gtk3
];
propagatedBuildInputs = [
adwaita-icon-theme
hicolor-icon-theme
];
dontDropIconThemeCache = true;
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -20,8 +31,12 @@ stdenv.mkDerivation rec {
mv PlatiPlus26 "$out/share/themes" mv PlatiPlus26 "$out/share/themes"
# Install icons # Install icons
# mkdir -p "$out/share/icons" mkdir -p "$out/share/icons"
# mv NineIcons/ "$out/share/icons" mv NineIcons/ "$out/share/icons"
for theme in $out/share/icons/*; do
gtk-update-icon-cache "$theme"
done
# Install fonts # Install fonts
mkdir -p "$out/share/fonts/truetype" mkdir -p "$out/share/fonts/truetype"