New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build GTK icon caches for some packages #47690
Conversation
- Update to newer revision - Update homepage - Update src - Update license - Add dependency on hicolor-icon-theme - Build GTK icon cache
@GrahamcOfBorg build maia-icon-theme paper-icon-theme enlightenment.efl gnome3.gnome-themes-extra mate.mate-icon-theme-faenza mate.mate-themes |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: maia-icon-theme, paper-icon-theme, enlightenment.efl, gnome3.gnome-themes-extra, mate.mate-icon-theme-faenza, mate.mate-themes Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: maia-icon-theme, paper-icon-theme, enlightenment.efl, gnome3.gnome-themes-extra, mate.mate-icon-theme-faenza, mate.mate-themes Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: maia-icon-theme, paper-icon-theme, enlightenment.efl, gnome3.gnome-themes-extra, mate.mate-icon-theme-faenza, mate.mate-themes Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
Should we do this? Icon cache is supposed to be global state, see the discussion in #45058 |
@jtojnar I am not sure. But I am getting warnings with |
Currently for most icon theme packages the icon cache is created when the package is built. The exception is the As far as I know no other infra-structure is currently provided to build icon caches. |
This solution is commented on #27458, for instance. |
PR #48116 would fix the issue of availability of icon theme caches considering the global state. |
As I think we concluded in the other PR, we actually want to build the icon cache both per-theme and globally, so this is also desirable. |
I wonder if we could package this step up into a hook that could be added to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good!
@@ -16,6 +16,10 @@ stdenv.mkDerivation rec { | |||
|
|||
propagatedUserEnvPkgs = [ gtk-engine-murrine ]; | |||
|
|||
postInstall = '' | |||
"${gtk3.out}/bin/gtk-update-icon-cache" "$out"/share/icons/ContrastHigh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To support cross compilation you should put gtk3 in nativeBuildInputs and just use gtk-update-icon-cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
@GrahamcOfBorg build maia-icon-theme paper-icon-theme enlightenment.efl gnome3.gnome-themes-extra mate.mate-icon-theme-faenza mate.mate-themes |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: maia-icon-theme, paper-icon-theme, enlightenment.efl, gnome3.gnome-themes-extra, mate.mate-icon-theme-faenza, mate.mate-themes Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: gnome-themes-extra, maia-icon-theme, paper-icon-theme Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: maia-icon-theme, paper-icon-theme, enlightenment.efl, gnome3.gnome-themes-extra, mate.mate-icon-theme-faenza, mate.mate-themes Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: maia-icon-theme, paper-icon-theme, enlightenment.efl, gnome3.gnome-themes-extra, mate.mate-icon-theme-faenza, mate.mate-themes Partial log (click to expand)
|
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)