numix-icon-theme-square: build GTK icon cache
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, numix-icon-theme }:
|
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${package-name}-${version}";
|
name = "${package-name}-${version}";
|
||||||
@@ -12,15 +12,19 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1gjwc0s6a7q1jby5bcwxkcmbs470m81y8s0clsm0qhcmcn1c36xj";
|
sha256 = "1gjwc0s6a7q1jby5bcwxkcmbs470m81y8s0clsm0qhcmcn1c36xj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ numix-icon-theme ];
|
nativeBuildInputs = [ gtk3 numix-icon-theme ];
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/icons
|
mkdir -p $out/share/icons
|
||||||
cp -a Numix-Square{,-Light} $out/share/icons/
|
cp -a Numix-Square{,-Light} $out/share/icons/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
for theme in $out/share/icons/*; do
|
||||||
|
gtk-update-icon-cache $theme
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Numix icon theme (square version)";
|
description = "Numix icon theme (square version)";
|
||||||
homepage = https://numixproject.org;
|
homepage = https://numixproject.org;
|
||||||
|
|||||||
Reference in New Issue
Block a user