cinnamon.mint-y-icons: add missing parent icon themes

Also:
- add runHook calls
- move postFixup actions to installPhase
- gtk-update-icon-cache does accepts only one icon path
This commit is contained in:
José Romildo Malaquias 2020-04-16 11:10:48 -03:00
parent 368c434642
commit b491caea5a

View File

@ -1,6 +1,7 @@
{ fetchFromGitHub { fetchFromGitHub
, stdenv , stdenv
, gnome3 , gnome3
, gnome-icon-theme
, hicolor-icon-theme , hicolor-icon-theme
, gtk3 , gtk3
}: }:
@ -16,8 +17,9 @@ stdenv.mkDerivation rec {
sha256 = "1c2a79ylk363i982czwwqcwc7cw6dyzlqphcypqm6nll7xlafq8s"; sha256 = "1c2a79ylk363i982czwwqcwc7cw6dyzlqphcypqm6nll7xlafq8s";
}; };
propagatedUserEnvPkgs = [ propagatedBuildInputs = [
gnome3.adwaita-icon-theme gnome3.adwaita-icon-theme
gnome-icon-theme
hicolor-icon-theme hicolor-icon-theme
]; ];
@ -25,15 +27,19 @@ stdenv.mkDerivation rec {
gtk3 gtk3
]; ];
postFixup = ''
gtk-update-icon-cache $out/share/icons/*
'';
dontDropIconThemeCache = true; dontDropIconThemeCache = true;
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out mkdir -p $out
mv usr/share $out mv usr/share $out
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
runHook postInstall
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {