{ stdenvNoCC, lib, fetchFromGitHub, gtk3, xcursorgen, papirus-icon-theme, }: stdenvNoCC.mkDerivation rec { pname = "deepin-icon-theme"; version = "2024.07.31"; src = fetchFromGitHub { owner = "linuxdeepin"; repo = pname; rev = version; hash = "sha256-Vt2rYZthGelXVUp8/L57ZlDsVEjjZhCv+kSGeU6nC2s="; }; makeFlags = [ "PREFIX=${placeholder "out"}" ]; nativeBuildInputs = [ gtk3 xcursorgen ]; propagatedBuildInputs = [ papirus-icon-theme ]; dontDropIconThemeCache = true; # Remove broken symbolic link(https://github.com/linuxdeepin/developer-center/issues/11245) preFixup = '' rm $out/share/icons/bloom/actions/24/{draw-triangle1.svg,draw-triangle2.svg,draw-triangle3.svg,draw-triangle4.svg} for theme in $out/share/icons/*; do gtk-update-icon-cache $theme done ''; meta = with lib; { description = "Provides the base icon themes on deepin"; homepage = "https://github.com/linuxdeepin/deepin-icon-theme"; license = licenses.gpl3Plus; platforms = platforms.linux; teams = [ teams.deepin ]; }; }