deepin-icon-theme: 15.12.52 -> 15.12.59 (#45876)

This commit is contained in:
José Romildo Malaquias 2018-08-31 14:51:07 -03:00 committed by xeji
parent 13c6a9ba86
commit 3ee5ba7ff1

View file

@ -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 ];
};
}