2020-05-03 20:52:19 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, xcursorgen
|
|
|
|
, papirus-icon-theme
|
|
|
|
, deepin
|
|
|
|
, hicolor-icon-theme
|
|
|
|
}:
|
2018-02-28 20:21:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deepin-icon-theme";
|
2019-06-22 13:26:33 +01:00
|
|
|
version = "15.12.71";
|
2018-02-28 20:21:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-06-22 13:26:33 +01:00
|
|
|
sha256 = "12rzzjp906np95ckbxrd4mb345lm198wz69kxy48f8q1zg78q8iw";
|
2018-02-28 20:21:16 +00:00
|
|
|
};
|
|
|
|
|
2020-05-03 20:52:19 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
xcursorgen
|
|
|
|
];
|
2018-02-28 20:21:16 +00:00
|
|
|
|
2019-09-12 15:47:48 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-04-17 20:43:40 +01:00
|
|
|
papirus-icon-theme
|
2019-09-12 15:47:48 +01:00
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2018-11-27 17:23:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tools/hicolor.links
|
|
|
|
patchShebangs tools/display_unused_links.sh
|
|
|
|
patchShebangs cursors-src/cursors/bitmaps/make.sh
|
|
|
|
patchShebangs cursors-src/render-cursors.sh
|
2018-08-31 18:51:07 +01:00
|
|
|
|
|
|
|
# keep icon-theme.cache
|
|
|
|
sed -i -e 's|\(-rm -f .*/icon-theme.cache\)|# \1|g' Makefile
|
2018-02-28 20:21:16 +00:00
|
|
|
'';
|
|
|
|
|
2018-11-27 17:23:55 +00:00
|
|
|
buildTargets = "all hicolor-links";
|
2019-11-09 23:52:53 +00:00
|
|
|
installTargets = [ "install-icons" "install-cursors" ];
|
2019-09-03 17:38:57 +01:00
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
2018-11-27 17:23:55 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -a ./Sea ./usr/share/icons/hicolor "$out"/share/icons/
|
|
|
|
'';
|
|
|
|
|
2020-05-03 21:03:55 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2018-10-30 22:17:45 +00:00
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-icon-theme";
|
2018-02-28 20:21:16 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|