Merge pull request #36284 from romildo/upd.numix-icon-theme

numix-icon-theme-circle,numix-icon-theme-square: 17-12-25 -> 18-02-16, build GTK icon cache
This commit is contained in:
Jörg Thalheim 2018-03-04 14:39:46 +00:00 committed by GitHub
commit f13f8c9537
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 12 deletions

View file

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, numix-icon-theme }:
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme }:
stdenv.mkDerivation rec {
version = "17-12-25";
version = "18-02-16";
package-name = "numix-icon-theme-circle";
@ -11,18 +11,22 @@ stdenv.mkDerivation rec {
owner = "numixproject";
repo = package-name;
rev = version;
sha256 = "10sn2w9xzmh7arbw0vn516p9nfym1bs8bf7i8zzvz7y09s61lkxh";
sha256 = "0q08q1czsk6h0dxqscbgryr12xaakp4zbch37z0jxpwh087gnq4f";
};
buildInputs = [ numix-icon-theme ];
dontBuild = true;
nativeBuildInputs = [ gtk3 numix-icon-theme ];
installPhase = ''
install -dm 755 $out/share/icons
cp -dr --no-preserve='ownership' Numix-Circle{,-Light} $out/share/icons/
'';
postFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
'';
meta = with stdenv.lib; {
description = "Numix icon theme (circle version)";
homepage = https://numixproject.org;

View file

@ -1,26 +1,30 @@
{ stdenv, fetchFromGitHub, numix-icon-theme }:
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme }:
stdenv.mkDerivation rec {
name = "${package-name}-${version}";
package-name = "numix-icon-theme-square";
version = "17-12-25";
version = "18-02-16";
src = fetchFromGitHub {
owner = "numixproject";
repo = package-name;
rev = version;
sha256 = "07rcfkz3c1z5fwqiib4r1bm964mpwf1f128xm8kz55xp6w1c7zgl";
sha256 = "1gjwc0s6a7q1jby5bcwxkcmbs470m81y8s0clsm0qhcmcn1c36xj";
};
buildInputs = [ numix-icon-theme ];
dontBuild = true;
nativeBuildInputs = [ gtk3 numix-icon-theme ];
installPhase = ''
mkdir -p $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; {
description = "Numix icon theme (square version)";
homepage = https://numixproject.org;