2018-02-28 20:21:16 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, papirus-icon-theme }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "deepin-icon-theme";
|
2018-08-31 18:51:07 +01:00
|
|
|
version = "15.12.59";
|
2018-02-28 20:21:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-08-31 18:51:07 +01:00
|
|
|
sha256 = "1qkxhqx6a7pahkjhf6m9lm16lw9v9grk0d4j449h9622zwfjkxlq";
|
2018-02-28 20:21:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gtk3 papirus-icon-theme ];
|
|
|
|
|
2018-08-31 18:51:07 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2018-02-28 20:21:16 +00:00
|
|
|
|
2018-08-31 18:51:07 +01:00
|
|
|
# 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
|
2018-02-28 20:21:16 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-08-31 18:51:07 +01:00
|
|
|
description = "Icons for the Deepin Desktop Environment";
|
2018-02-28 20:21:16 +00:00
|
|
|
homepage = https://github.com/linuxdeepin/deepin-icon-theme;
|
|
|
|
license = licenses.gpl3;
|
2018-08-31 18:51:07 +01:00
|
|
|
platforms = platforms.unix;
|
2018-02-28 20:21:16 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|