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

46 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, gtk3, xcursorgen, papirus-icon-theme, deepin }:
2018-02-28 20:21:16 +00:00
stdenv.mkDerivation rec {
pname = "deepin-icon-theme";
version = "15.12.71";
2018-02-28 20:21:16 +00:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "12rzzjp906np95ckbxrd4mb345lm198wz69kxy48f8q1zg78q8iw";
2018-02-28 20:21:16 +00:00
};
nativeBuildInputs = [ gtk3 xcursorgen ];
2018-02-28 20:21:16 +00:00
buildInputs = [ papirus-icon-theme ];
2018-02-28 20:21:16 +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
# keep icon-theme.cache
sed -i -e 's|\(-rm -f .*/icon-theme.cache\)|# \1|g' Makefile
2018-02-28 20:21:16 +00:00
'';
buildTargets = "all hicolor-links";
installTargets = "install-icons install-cursors";
installFlags = [ "PREFIX=${placeholder "out"}" ];
postInstall = ''
cp -a ./Sea ./usr/share/icons/hicolor "$out"/share/icons/
'';
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
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";
2018-02-28 20:21:16 +00:00
homepage = https://github.com/linuxdeepin/deepin-icon-theme;
license = licenses.gpl3;
platforms = platforms.unix;
2018-02-28 20:21:16 +00:00
maintainers = with maintainers; [ romildo ];
};
}