1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/desktops/deepin/deepin-icon-theme/default.nix

37 lines
953 B
Nix
Raw Normal View History

2018-10-30 22:17:45 +00:00
{ stdenv, fetchFromGitHub, gtk3, papirus-icon-theme, deepin }:
2018-02-28 20:21:16 +00:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-icon-theme";
version = "15.12.64";
2018-02-28 20:21:16 +00:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0z1yrp6yg2hb67azrbd9ac743jjh83vxdf2j0mmv2lfpd4fqw8qc";
2018-02-28 20:21:16 +00:00
};
nativeBuildInputs = [ gtk3 papirus-icon-theme ];
postPatch = ''
patchShebangs .
2018-02-28 20:21:16 +00: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
'';
2018-10-30 22:17:45 +00:00
passthru.updateScript = deepin.updateScript { inherit name; };
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 ];
};
}