From 7c36b4611d54453c5cdae3baffbe87d85a858aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 28 Jul 2015 16:39:36 +0200 Subject: [PATCH] gnome3.adwaita-icon-theme: remove empty dir tree Also similar for old gnome2 icon theme. /cc maintainer @lethalman. --- pkgs/desktops/gnome-2/desktop/gnome-icon-theme/default.nix | 3 +++ .../gnome-3/3.16/core/adwaita-icon-theme/default.nix | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/desktops/gnome-2/desktop/gnome-icon-theme/default.nix b/pkgs/desktops/gnome-2/desktop/gnome-icon-theme/default.nix index 315f6ff9c5a9..dd7e269f94e5 100644 --- a/pkgs/desktops/gnome-2/desktop/gnome-icon-theme/default.nix +++ b/pkgs/desktops/gnome-2/desktop/gnome-icon-theme/default.nix @@ -11,6 +11,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig intltool iconnamingutils gtk ]; + # remove a tree of dirs with no files within + postInstall = '' rm -r "$out/share/locale" ''; + meta = { platforms = stdenv.lib.platforms.linux; }; diff --git a/pkgs/desktops/gnome-3/3.16/core/adwaita-icon-theme/default.nix b/pkgs/desktops/gnome-3/3.16/core/adwaita-icon-theme/default.nix index a445ff73608b..eb210f1bb5bd 100644 --- a/pkgs/desktops/gnome-3/3.16/core/adwaita-icon-theme/default.nix +++ b/pkgs/desktops/gnome-3/3.16/core/adwaita-icon-theme/default.nix @@ -13,9 +13,12 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ hicolor_icon_theme ]; buildInputs = [ gdk_pixbuf librsvg ]; - + nativeBuildInputs = [ pkgconfig intltool iconnamingutils gtk ]; + # remove a tree of dirs with no files within + postInstall = '' rm -r "$out/locale" ''; + meta = with stdenv.lib; { platforms = platforms.linux; maintainers = [ maintainers.lethalman ];