diff --git a/pkgs/desktops/deepin/deepin-icon-theme/default.nix b/pkgs/desktops/deepin/deepin-icon-theme/default.nix index 7a422beb992..c6d7f349301 100644 --- a/pkgs/desktops/deepin/deepin-icon-theme/default.nix +++ b/pkgs/desktops/deepin/deepin-icon-theme/default.nix @@ -3,37 +3,32 @@ stdenv.mkDerivation rec { name = "${pname}-${version}"; pname = "deepin-icon-theme"; - version = "15.12.52"; + version = "15.12.59"; src = fetchFromGitHub { owner = "linuxdeepin"; repo = pname; rev = version; - sha256 = "141in9jlflmckd8rg4605dfks84p1p6b1zdbhbiwrg11xbl66f3l"; - - # Get rid of case collision in file names, which is an issue in - # darwin where file names are case insensitive. - extraPostFetch = '' - rm "$out"/Sea/apps/scalable/TeXmacs.svg - rm "$out"/deepin/apps/48/TeXmacs.svg - ''; + sha256 = "1qkxhqx6a7pahkjhf6m9lm16lw9v9grk0d4j449h9622zwfjkxlq"; }; nativeBuildInputs = [ gtk3 papirus-icon-theme ]; - makeFlags = [ "PREFIX=$(out)" ]; + postPatch = '' + patchShebangs . - postFixup = '' - for theme in $out/share/icons/*; do - gtk-update-icon-cache $theme - done + # install in $out + sed -i -e "s|/usr|$out|g" Makefile tools/hicolor.links + + # keep icon-theme.cache + sed -i -e 's|\(-rm -f .*/icon-theme.cache\)|# \1|g' Makefile ''; meta = with stdenv.lib; { - description = "Deepin icon theme"; + description = "Icons for the Deepin Desktop Environment"; homepage = https://github.com/linuxdeepin/deepin-icon-theme; license = licenses.gpl3; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ romildo ]; }; }