1{
2 lib,
3 stdenv,
4 fetchurl,
5 autoreconfHook,
6 gtk3,
7 mate,
8 hicolor-icon-theme,
9 gitUpdater,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "mate-icon-theme-faenza";
14 version = "1.20.0";
15
16 src = fetchurl {
17 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
18 sha256 = "000vr9cnbl2qlysf2gyg1lsjirqdzmwrnh6d3hyrsfc0r2vh4wna";
19 };
20
21 nativeBuildInputs = [
22 autoreconfHook
23 gtk3
24 ];
25
26 propagatedBuildInputs = [
27 mate.mate-icon-theme
28 hicolor-icon-theme
29 ];
30
31 dontDropIconThemeCache = true;
32
33 postInstall = ''
34 for theme in "$out"/share/icons/*; do
35 gtk-update-icon-cache "$theme"
36 done
37 '';
38
39 enableParallelBuilding = true;
40
41 passthru.updateScript = gitUpdater {
42 rev-prefix = "v";
43 url = "https://github.com/mate-desktop-legacy-archive/${pname}";
44 };
45
46 meta = with lib; {
47 description = "Faenza icon theme from MATE";
48 homepage = "https://mate-desktop.org";
49 license = licenses.gpl3Plus;
50 platforms = platforms.unix;
51 teams = [ teams.mate ];
52 };
53}