1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 gettext,
7 iconnamingutils,
8 librsvg,
9 gtk3,
10 hicolor-icon-theme,
11 mateUpdateScript,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "mate-icon-theme";
16 version = "1.28.0";
17
18 src = fetchurl {
19 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
20 sha256 = "lNYHkGDKXfdFQpId5O6ji30C0HVhyRk1bZXeh2+abTo=";
21 };
22
23 nativeBuildInputs = [
24 pkg-config
25 gettext
26 iconnamingutils
27 ];
28
29 buildInputs = [
30 librsvg
31 ];
32
33 propagatedBuildInputs = [
34 hicolor-icon-theme
35 ];
36
37 dontDropIconThemeCache = true;
38
39 postInstall = ''
40 for theme in "$out"/share/icons/*; do
41 "${gtk3.out}/bin/gtk-update-icon-cache" "$theme"
42 done
43 '';
44
45 enableParallelBuilding = true;
46
47 passthru.updateScript = mateUpdateScript { inherit pname; };
48
49 meta = with lib; {
50 description = "Icon themes from MATE";
51 homepage = "https://mate-desktop.org";
52 license = licenses.lgpl3Plus;
53 platforms = platforms.linux;
54 teams = [ teams.mate ];
55 };
56}