diff options
author | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-02-24 11:31:11 +0000 |
---|---|---|
committer | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-02-24 11:38:54 +0000 |
commit | 466d051924ea9ffe4861ac48baa31e17b66428fa (patch) | |
tree | fce5bf670680d802433f94d521ce2a66d7290bb7 /pkgs/data/icons | |
parent | 0765f0528d2e416bab4504f7e7cc7c250eec6452 (diff) |
numix-icon-theme: build GTK icon cache
Diffstat (limited to 'pkgs/data/icons')
-rw-r--r-- | pkgs/data/icons/numix-icon-theme/default.nix | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/data/icons/numix-icon-theme/default.nix b/pkgs/data/icons/numix-icon-theme/default.nix index 08fd012bb41e8..205ebaa5c6626 100644 --- a/pkgs/data/icons/numix-icon-theme/default.nix +++ b/pkgs/data/icons/numix-icon-theme/default.nix @@ -1,26 +1,28 @@ -{ stdenv, fetchFromGitHub, hicolor_icon_theme }: +{ stdenv, fetchFromGitHub, gtk3, hicolor_icon_theme }: stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "numix-icon-theme"; version = "17-12-25"; - package-name = "numix-icon-theme"; - - name = "${package-name}-${version}"; - src = fetchFromGitHub { owner = "numixproject"; - repo = package-name; + repo = pname; rev = version; sha256 = "0q3hpq2jc9iwnzzqpb12g1qzjsw4ckhdqkfqf6nirl87r5drkv6j"; }; - buildInputs = [ hicolor_icon_theme ]; - - dontBuild = true; + nativeBuildInputs = [ gtk3 hicolor_icon_theme ]; installPhase = '' - install -dm 755 $out/share/icons - cp -dr --no-preserve='ownership' Numix{,-Light} $out/share/icons/ + mkdir -p $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; { |