3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/deepin/deepin-icon-theme/default.nix

68 lines
1.5 KiB
Nix
Raw Normal View History

2020-05-03 20:52:19 +01:00
{ stdenv
, fetchFromGitHub
, gtk3
, xcursorgen
, papirus-icon-theme
, hicolor-icon-theme
, deepin
2020-05-03 20:52:19 +01:00
}:
2018-02-28 20:21:16 +00:00
stdenv.mkDerivation rec {
pname = "deepin-icon-theme";
version = "2020.05.21";
2018-02-28 20:21:16 +00:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0b1s6kf0q804zbbghly981wzacy1spi8168shf3x8w95rqj6463p";
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
propagatedBuildInputs = [
papirus-icon-theme
hicolor-icon-theme
];
dontDropIconThemeCache = true;
buildTargets = "all hicolor-links";
postPatch = ''
# 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
substituteInPlace Sea/index.theme --replace Inherits=deepin Inherits=bloom
2018-02-28 20:21:16 +00: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
runHook postInstall
'';
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; {
description = "Icons for the Deepin Desktop Environment";
homepage = "https://github.com/linuxdeepin/deepin-icon-theme";
2018-02-28 20:21:16 +00:00
license = licenses.gpl3;
platforms = platforms.unix;
2018-02-28 20:21:16 +00:00
maintainers = with maintainers; [ romildo ];
};
}