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