@@ -3,37 +3,32 @@
33stdenv.mkDerivation rec {
44 name = "${pname}-${version}";
55 pname = "deepin-icon-theme";
6− version = "15.12.52";
6+ version = "15.12.59";
77
88 src = fetchFromGitHub {
99 owner = "linuxdeepin";
1010 repo = pname;
1111 rev = version;
12− sha256 = "141in9jlflmckd8rg4605dfks84p1p6b1zdbhbiwrg11xbl66f3l";
13−
14− # Get rid of case collision in file names, which is an issue in
15− # darwin where file names are case insensitive.
16− extraPostFetch = ''
17− rm "$out"/Sea/apps/scalable/TeXmacs.svg
18− rm "$out"/deepin/apps/48/TeXmacs.svg
19− '';
12+ sha256 = "1qkxhqx6a7pahkjhf6m9lm16lw9v9grk0d4j449h9622zwfjkxlq";
2013 };
2114
2215 nativeBuildInputs = [ gtk3 papirus-icon-theme ];
2316
24− makeFlags = [ "PREFIX=$(out)" ];
17+ postPatch = ''
18+ patchShebangs .
2519
26− postFixup = ''
27− for theme in $out/share/icons/*; do
28− gtk-update-icon-cache $theme
29− done
20+ # install in $out
21+ sed -i -e "s|/usr|$out|g" Makefile tools/hicolor.links
22+
23+ # keep icon-theme.cache
24+ sed -i -e 's|\(-rm -f .*/icon-theme.cache\)|# \1|g' Makefile
3025 '';
3126
3227 meta = with stdenv.lib; {
33− description = "Deepin icon theme";
28+ description = "Icons for the Deepin Desktop Environment";
3429 homepage = https://github.com/linuxdeepin/deepin-icon-theme;
3530 license = licenses.gpl3;
36− platforms = platforms.linux;
31+ platforms = platforms.unix;
3732 maintainers = with maintainers; [ romildo ];
3833 };
3934}