2020-05-03 12:52:19 -07:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, xcursorgen
|
|
|
|
, papirus-icon-theme
|
|
|
|
, hicolor-icon-theme
|
2020-05-25 13:04:39 -07:00
|
|
|
, deepin
|
2020-05-03 12:52:19 -07:00
|
|
|
}:
|
2018-02-28 12:21:16 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deepin-icon-theme";
|
2020-05-25 13:04:39 -07:00
|
|
|
version = "2020.05.21";
|
2018-02-28 12:21:16 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-25 13:04:39 -07:00
|
|
|
sha256 = "0b1s6kf0q804zbbghly981wzacy1spi8168shf3x8w95rqj6463p";
|
2018-02-28 12:21:16 -08:00
|
|
|
};
|
|
|
|
|
2020-05-03 12:52:19 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
xcursorgen
|
|
|
|
];
|
2018-02-28 12:21:16 -08:00
|
|
|
|
2019-09-12 07:47:48 -07:00
|
|
|
propagatedBuildInputs = [
|
2020-04-17 12:43:40 -07:00
|
|
|
papirus-icon-theme
|
2019-09-12 07:47:48 -07:00
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2020-05-25 13:04:39 -07:00
|
|
|
buildTargets = "all hicolor-links";
|
|
|
|
|
2018-11-27 09:23:55 -08:00
|
|
|
postPatch = ''
|
2020-05-25 13:04:39 -07:00
|
|
|
# fix: hicolor links should follow the deepin -> bloom naming change
|
|
|
|
# https://github.com/linuxdeepin/deepin-icon-theme/pull/24
|
|
|
|
substituteInPlace tools/hicolor.links --replace deepin bloom
|
2018-08-31 10:51:07 -07:00
|
|
|
|
2020-05-25 13:04:39 -07:00
|
|
|
substituteInPlace Sea/index.theme --replace Inherits=deepin Inherits=bloom
|
2018-02-28 12:21:16 -08:00
|
|
|
'';
|
|
|
|
|
2020-05-25 13:04:39 -07:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -vai bloom* Sea $out/share/icons
|
|
|
|
|
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
|
|
|
|
|
|
|
cp -vai usr/share/icons/hicolor $out/share/icons
|
2018-11-27 09:23:55 -08:00
|
|
|
|
2020-05-25 13:04:39 -07:00
|
|
|
runHook postInstall
|
2018-11-27 09:23:55 -08:00
|
|
|
'';
|
|
|
|
|
2020-05-03 13:03:55 -07:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2018-10-30 15:17:45 -07:00
|
|
|
|
2018-02-28 12:21:16 -08:00
|
|
|
meta = with stdenv.lib; {
|
2018-08-31 10:51:07 -07:00
|
|
|
description = "Icons for the Deepin Desktop Environment";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-icon-theme";
|
2018-02-28 12:21:16 -08:00
|
|
|
license = licenses.gpl3;
|
2018-08-31 10:51:07 -07:00
|
|
|
platforms = platforms.unix;
|
2018-02-28 12:21:16 -08:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|