@@ -0,0 +1,52 @@
1+{ stdenv
2+, fetchurl
3+, gnome-icon-theme
4+, gtk3
5+, hicolor-icon-theme
6+, humanity-icon-theme
7+, ubuntu-themes
8+}:
9+
10+stdenv.mkDerivation rec {
11+ pname = "mint-x-icons";
12+ version = "1.5.5";
13+
14+ src = fetchurl {
15+ url = "http://packages.linuxmint.com/pool/main/m/${pname}/${pname}_${version}.tar.xz";
16+ sha256 = "0nq3si06m98b71f33wism0bvlvib57rm96msf0wx852ginw3a5yd";
17+ };
18+
19+ nativeBuildInputs = [
20+ gtk3
21+ ];
22+
23+ propagatedBuildInputs = [
24+ gnome-icon-theme
25+ hicolor-icon-theme
26+ humanity-icon-theme
27+ ubuntu-themes # provides the parent icon theme: ubuntu-mono-dark
28+ ];
29+
30+ dontDropIconThemeCache = true;
31+
32+ installPhase = ''
33+ runHook preInstall
34+
35+ mkdir -p $out/share/icons
36+ cp -vai usr/share/icons/* $out/share/icons
37+
38+ for theme in $out/share/icons/*; do
39+ gtk-update-icon-cache $theme
40+ done
41+
42+ runHook postInstall
43+ '';
44+
45+ meta = with stdenv.lib; {
46+ description = "Mint/metal theme based on mintified versions of Clearlooks Revamp, Elementary and Faenza";
47+ homepage = "https://github.com/linuxmint/mint-x-icons";
48+ license = licenses.gpl3Plus;
49+ platforms = platforms.linux;
50+ maintainers = with maintainers; [ romildo ];
51+ };
52+}