numix-icon-theme-circle: add missing parent icon themes
Also: - add runHook calls - move postFixup actions to installPhase
This commit is contained in:
parent
bc895be32c
commit
06f4e69de0
@ -13,18 +13,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ gtk3 ];
|
nativeBuildInputs = [ gtk3 ];
|
||||||
|
|
||||||
buildInputs = [ numix-icon-theme ];
|
propagatedBuildInputs = [ numix-icon-theme hicolor-icon-theme ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ hicolor-icon-theme ];
|
|
||||||
|
|
||||||
dontDropIconThemeCache = true;
|
dontDropIconThemeCache = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -dm 755 $out/share/icons
|
runHook preInstall
|
||||||
cp -dr --no-preserve='ownership' Numix-Circle{,-Light} $out/share/icons/
|
|
||||||
'';
|
mkdir -p $out/share/icons
|
||||||
|
cp -a Numix-Circle{,-Light} $out/share/icons
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
for panel in $out/share/icons/*/*/panel; do
|
for panel in $out/share/icons/*/*/panel; do
|
||||||
ln -sf $(realpath ${numix-icon-theme}/share/icons/Numix/16/$(readlink $panel)) $panel
|
ln -sf $(realpath ${numix-icon-theme}/share/icons/Numix/16/$(readlink $panel)) $panel
|
||||||
done
|
done
|
||||||
@ -32,6 +30,8 @@ stdenv.mkDerivation rec {
|
|||||||
for theme in $out/share/icons/*; do
|
for theme in $out/share/icons/*; do
|
||||||
gtk-update-icon-cache $theme
|
gtk-update-icon-cache $theme
|
||||||
done
|
done
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user