3
0
Fork 0
forked from mirrors/nixpkgs

numix-icon-theme: build GTK icon cache

This commit is contained in:
Yegor Timoshenko 2018-02-24 11:31:11 +00:00
parent 0765f0528d
commit 466d051924

View file

@ -1,26 +1,28 @@
{ stdenv, fetchFromGitHub, hicolor_icon_theme }: { stdenv, fetchFromGitHub, gtk3, hicolor_icon_theme }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "numix-icon-theme";
version = "17-12-25"; version = "17-12-25";
package-name = "numix-icon-theme";
name = "${package-name}-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "numixproject"; owner = "numixproject";
repo = package-name; repo = pname;
rev = version; rev = version;
sha256 = "0q3hpq2jc9iwnzzqpb12g1qzjsw4ckhdqkfqf6nirl87r5drkv6j"; sha256 = "0q3hpq2jc9iwnzzqpb12g1qzjsw4ckhdqkfqf6nirl87r5drkv6j";
}; };
buildInputs = [ hicolor_icon_theme ]; nativeBuildInputs = [ gtk3 hicolor_icon_theme ];
dontBuild = true;
installPhase = '' installPhase = ''
install -dm 755 $out/share/icons mkdir -p $out/share/icons
cp -dr --no-preserve='ownership' Numix{,-Light} $out/share/icons/ mv Numix{,-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; {