mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
numix-icon-theme-square: build GTK icon cache
This commit is contained in:
parent
cba652b766
commit
52a4d3183f
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, numix-icon-theme }:
|
||||
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${package-name}-${version}";
|
||||
@ -12,15 +12,19 @@ stdenv.mkDerivation rec {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user